- Fixed: Use buggy PointOnSide for respawning monsters too.

SVN r3485 (trunk)
This commit is contained in:
Randy Heit 2012-03-28 02:23:54 +00:00
parent c2b320d408
commit 13869d2173

View file

@ -2464,7 +2464,7 @@ void P_NightmareRespawn (AActor *mobj)
// spawn it // spawn it
x = mobj->SpawnPoint[0]; x = mobj->SpawnPoint[0];
y = mobj->SpawnPoint[1]; y = mobj->SpawnPoint[1];
mo = Spawn (RUNTIME_TYPE(mobj), x, y, z, NO_REPLACE); mo = AActor::StaticSpawn(RUNTIME_TYPE(mobj), x, y, z, NO_REPLACE, true);
if (z == ONFLOORZ) if (z == ONFLOORZ)
mo->z += mo->SpawnPoint[2]; mo->z += mo->SpawnPoint[2];
@ -3354,8 +3354,8 @@ void AActor::Tick ()
if (level.time & 31) if (level.time & 31)
return; return;
if (pr_nightmarerespawn() > 4) // if (pr_nightmarerespawn() > 4)
return; // return;
P_NightmareRespawn (this); P_NightmareRespawn (this);
} }