- Changed A_SpawnFly to do nothing if reactiontime is 0. Reactiontime was

originally a counter, so if it started at 0, A_SpawnFly would effectively 
  never spawn anything. Fixes Dehacked patches that use A_SpawnSound to
  play a sound, since it calls A_SpawnFly.


SVN r1741 (trunk)
This commit is contained in:
Randy Heit 2009-08-01 01:56:16 +00:00
commit 99d99ce5e5
2 changed files with 9 additions and 4 deletions

View file

@ -144,13 +144,12 @@ static void SpawnFly(AActor *self, const PClass *spawntype, FSoundID sound)
AActor *targ;
int r;
// [GZ] Should be more fiable than a countdown...
if (self->reactiontime > level.maptime)
// [GZ] Should be more viable than a countdown...
if (self->reactiontime == 0 || self->reactiontime > level.maptime)
return; // still flying
targ = self->target;
if (spawntype != NULL)
{
fog = Spawn (spawntype, targ->x, targ->y, targ->z, ALLOW_REPLACE);