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
This commit is contained in:
terminx 2019-08-14 14:26:42 +00:00 committed by Christoph Oelckers
parent 25bdd9f6d5
commit 3b504975a2

View file

@ -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;