From 3b504975a20e3f285f28b66e0e2294b038ad6fbb Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 14 Aug 2019 14:26:42 +0000 Subject: [PATCH] Call A_GetZLimits() for sprites in the map at load time git-svn-id: https://svn.eduke32.com/eduke32@8001 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index ad020799a..1b073c731 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -1461,8 +1461,7 @@ int A_Spawn(int spriteNum, int tileNum) else s.owner = a.owner = newSprite; - a.floorz = sector[s.sectnum].floorz; - a.ceilingz = sector[s.sectnum].ceilingz; + A_GetZLimits(newSprite); a.stayput = a.extra = -1;