From 9841b053ea92bd668b6bbe2f76498b95c9332581 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 29 Aug 2019 05:14:59 +0000 Subject: [PATCH] Set actor .bpos after A_GetZLimits() in A_Spawn() git-svn-id: https://svn.eduke32.com/eduke32@8055 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 7926e9400..cb9a767b5 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -1510,7 +1510,11 @@ int A_Spawn(int spriteNum, int tileNum) if (!G_InitActor(newSprite, s.picnum, 0)) 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];