mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-01 00:22:03 +00:00
SW: fix player's run animation not playing.
This commit is contained in:
parent
c9a610fea6
commit
3e30e5f4ef
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue