mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Do not abort if Korax target destroyed before attack begins
https://forum.zdoom.org/viewtopic.php?t=59551
This commit is contained in:
parent
9bf11155eb
commit
12eb760ff4
1 changed files with 10 additions and 0 deletions
|
@ -244,6 +244,11 @@ class Korax : Actor
|
|||
|
||||
void A_KoraxMissile()
|
||||
{
|
||||
if (!target)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static const class<Actor> choices[] =
|
||||
{
|
||||
"WraithFX1", "Demon1FX1", "Demon2FX1", "FireDemonMissile", "CentaurFX", "SerpentFX"
|
||||
|
@ -282,6 +287,11 @@ class Korax : Actor
|
|||
|
||||
void KoraxFire (Class<Actor> type, int arm)
|
||||
{
|
||||
if (!target)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static const int extension[] =
|
||||
{
|
||||
KORAX_ARM_EXTENSION_SHORT,
|
||||
|
|
Loading…
Reference in a new issue