- 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 drfrag
parent 21271d8815
commit 3c38a18b0c

View file

@ -227,7 +227,7 @@ class RandomSpawner : Actor
}
newmobj.AddZ(SpawnPoint.Z);
}
if (newmobj.bMissile)
if (newmobj.bMissile && !(newmobj is 'RandomSpawner'))
newmobj.CheckMissileSpawn(0);
// Bouncecount is used to count how many recursions we're in.
if (newmobj is 'RandomSpawner')