mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +00:00
- Fixed: RandomSpawner spawning another RandomSpawner spawning a missile could result in the second RandomSpawner being erroneously destroyed.
This commit is contained in:
parent
10c682acf6
commit
a6a02a2a6c
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class RandomSpawner : Actor
|
||||||
}
|
}
|
||||||
newmobj.AddZ(SpawnPoint.Z);
|
newmobj.AddZ(SpawnPoint.Z);
|
||||||
}
|
}
|
||||||
if (newmobj.bMissile)
|
if (newmobj.bMissile && !(newmobj is 'RandomSpawner'))
|
||||||
newmobj.CheckMissileSpawn(0);
|
newmobj.CheckMissileSpawn(0);
|
||||||
// Bouncecount is used to count how many recursions we're in.
|
// Bouncecount is used to count how many recursions we're in.
|
||||||
if (newmobj is 'RandomSpawner')
|
if (newmobj is 'RandomSpawner')
|
||||||
|
|
Loading…
Reference in a new issue