Skip to content

Commit

Permalink
SW: fix player's run animation not playing.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Feb 4, 2024
1 parent c9a610f commit 3e30e5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/games/sw/src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4713,12 +4713,12 @@ void DoPlayerWade(DSWPlayer* pp)

if (pp->Flags & (PF_PLAYER_MOVED))
{
if (plActor->checkStateGroup(NAME_Run))
if (!plActor->checkStateGroup(NAME_Run))
plActor->setStateGroup(NAME_Run);
}
else
{
if (plActor->checkStateGroup(NAME_Stand))
if (!plActor->checkStateGroup(NAME_Stand))
plActor->setStateGroup(NAME_Stand);
}

Expand Down Expand Up @@ -6358,12 +6358,12 @@ void DoPlayerRun(DSWPlayer* pp)
{
if (pp->Flags & (PF_PLAYER_MOVED))
{
if (plActor->checkStateGroup(NAME_Run))
if (!plActor->checkStateGroup(NAME_Run))
plActor->setStateGroup(NAME_Run);
}
else
{
if (plActor->checkStateGroup(NAME_Stand))
if (!plActor->checkStateGroup(NAME_Stand))
plActor->setStateGroup(NAME_Stand);
}
}
Expand Down

0 comments on commit 3e30e5f

Please sign in to comment.