From 3e30e5f4ef3c5f13e11d420e7fd7869ba5fdbb76 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Feb 2024 00:20:04 +0100 Subject: [PATCH] SW: fix player's run animation not playing. --- source/games/sw/src/player.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 95889c6ea3..a415e8773f 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -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); } @@ -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); } }