yquake2remaster/src
Yamagi Burmeister 5e5217e549 Fix a rare crash in flyer.c with self->enemy being NULL
This crash was found by DanielGibson, he even guessed the right fix
without having a usable coredump. ;) In boss1.bsp Macron is waiting for
the player, despawning as soon as the player moves to him. After that
the player needs to press 2 buttons, each button triggers 3 flyers. If
the player is fast enough, the first bunch of flyers may spawn before
macron is despawned. Now there's a small chance that a flyer decides to
attack macron... If Macron despwans at the the next frame, self->enemy
is set to NULL (Macron is gone) but nevertheless flyer_fire() is called.

The correct fix would be to call flyer_fire() before Macron despawns,
but that's hard to impossible. So take the easy route and check if
self->enemy is not NULL.
2016-11-04 19:22:33 +01:00
..
backends Make OSTYPE and ARCH user defineable. 2016-10-24 18:02:17 +02:00
client When an invalid muzzle flash offset is send, just return. 2016-10-23 18:36:43 +02:00
common Make OSTYPE and ARCH user defineable. 2016-10-24 18:02:17 +02:00
game Fix a rare crash in flyer.c with self->enemy being NULL 2016-11-04 19:22:33 +01:00
server Move file name check to prevent spurious "refusing to download messages 2015-10-27 17:38:28 +01:00