Set actor .bpos after A_GetZLimits() in A_Spawn()

git-svn-id: https://svn.eduke32.com/eduke32@8055 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-29 05:14:59 +00:00 committed by Christoph Oelckers
parent 565ad4c5b6
commit 9841b053ea

View file

@ -1510,7 +1510,11 @@ int A_Spawn(int spriteNum, int tileNum)
if (!G_InitActor(newSprite, s.picnum, 0)) if (!G_InitActor(newSprite, s.picnum, 0))
T2(newSprite) = T5(newSprite) = 0; // AC_MOVE_ID, AC_ACTION_ID T2(newSprite) = T5(newSprite) = 0; // AC_MOVE_ID, AC_ACTION_ID
else A_GetZLimits(newSprite); else
{
A_GetZLimits(newSprite);
actor[newSprite].bpos = sprite[newSprite].pos;
}
} }
pSprite = &sprite[newSprite]; pSprite = &sprite[newSprite];