- do not set crouch player sprites on voodoo dolls

https://forum.zdoom.org/viewtopic.php?t=65257
This commit is contained in:
alexey.lysiuk 2019-07-09 22:34:15 +03:00 committed by Christoph Oelckers
parent e0f52ddf8e
commit 73ddab3a59
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ void P_CheckPlayerSprite(AActor *actor, int &spritenum, DVector2 &scale)
}
// Set the crouch sprite?
if (player->crouchfactor < 0.75)
if (player->mo == actor && player->crouchfactor < 0.75)
{
int crouchsprite = player->mo->IntVar(NAME_crouchsprite);
if (spritenum == actor->SpawnState->sprite || spritenum == crouchsprite)