SW: fix player's run animation not playing.

This commit is contained in:
Christoph Oelckers 2024-02-05 00:20:04 +01:00
parent c9a610fea6
commit 3e30e5f4ef

View file

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