Revise r8001

git-svn-id: https://svn.eduke32.com/eduke32@8004 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-14 15:28:53 +00:00 committed by Christoph Oelckers
parent 7ec6a6beca
commit 59b0c0e3f7

View file

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