- 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
parent 38d74f57ce
commit 99d99ce5e5
2 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,10 @@
July 25, 2009
July 31, 2009
- 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 without shooting boss cubes, since it also calls A_SpawnFly.
July 25, 2009
- Joystick devices now send key up events for any buttons that are held
down when they are destroyed.
- Changed the joystick enable-y menu items to be nonrepeatable so that you

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);