- 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 drfrag
parent c4780495e1
commit 660d930cf6

View file

@ -973,7 +973,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)