Skip to content

Commit

Permalink
- Fixed: RandomSpawner spawning another RandomSpawner spawning a miss…
Browse files Browse the repository at this point in the history
…ile could result in the second RandomSpawner being erroneously destroyed.
  • Loading branch information
Player701 authored and coelckers committed Dec 2, 2020
1 parent 10c682a commit a6a02a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/shared/randomspawner.zs
Expand Up @@ -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')
Expand Down

0 comments on commit a6a02a2

Please sign in to comment.