From 59b0c0e3f7bbbc06e7c859e7b46078057e68e983 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 14 Aug 2019 15:28:53 +0000 Subject: [PATCH] Revise r8001 git-svn-id: https://svn.eduke32.com/eduke32@8004 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index d1b38fa06..669b0218d 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -1461,9 +1461,9 @@ int A_Spawn(int spriteNum, int tileNum) else s.owner = a.owner = newSprite; - A_GetZLimits(newSprite); - - a.stayput = a.extra = -1; + a.floorz = sector[s.sectnum].floorz; + a.ceilingz = sector[s.sectnum].ceilingz; + a.stayput = a.extra = -1; #ifdef POLYMER a.lightId = -1; @@ -1515,6 +1515,7 @@ 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); } pSprite = &sprite[newSprite];