- Fixed: RandomSpawner spawning another RandomSpawner spawning a missile could result in the second RandomSpawner being erroneously destroyed.

This commit is contained in:
Player701 2020-12-02 09:48:45 +03:00 committed by Christoph Oelckers
parent 10c682acf6
commit a6a02a2a6c

View file

@ -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')