mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- Fixed: Use buggy PointOnSide for respawning monsters too.
SVN r3485 (trunk)
This commit is contained in:
parent
c2b320d408
commit
13869d2173
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue