mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- 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:
parent
38d74f57ce
commit
99d99ce5e5
2 changed files with 9 additions and 4 deletions
|
@ -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
|
- Joystick devices now send key up events for any buttons that are held
|
||||||
down when they are destroyed.
|
down when they are destroyed.
|
||||||
- Changed the joystick enable-y menu items to be nonrepeatable so that you
|
- Changed the joystick enable-y menu items to be nonrepeatable so that you
|
||||||
|
|
|
@ -144,13 +144,12 @@ static void SpawnFly(AActor *self, const PClass *spawntype, FSoundID sound)
|
||||||
AActor *targ;
|
AActor *targ;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
// [GZ] Should be more fiable than a countdown...
|
// [GZ] Should be more viable than a countdown...
|
||||||
if (self->reactiontime > level.maptime)
|
if (self->reactiontime == 0 || self->reactiontime > level.maptime)
|
||||||
return; // still flying
|
return; // still flying
|
||||||
|
|
||||||
targ = self->target;
|
targ = self->target;
|
||||||
|
|
||||||
|
|
||||||
if (spawntype != NULL)
|
if (spawntype != NULL)
|
||||||
{
|
{
|
||||||
fog = Spawn (spawntype, targ->x, targ->y, targ->z, ALLOW_REPLACE);
|
fog = Spawn (spawntype, targ->x, targ->y, targ->z, ALLOW_REPLACE);
|
||||||
|
|
Loading…
Reference in a new issue