mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
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:
parent
565ad4c5b6
commit
9841b053ea
1 changed files with 5 additions and 1 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue