mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +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()
|
void A_KoraxMissile()
|
||||||
{
|
{
|
||||||
|
if (!target)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
static const class<Actor> choices[] =
|
static const class<Actor> choices[] =
|
||||||
{
|
{
|
||||||
"WraithFX1", "Demon1FX1", "Demon2FX1", "FireDemonMissile", "CentaurFX", "SerpentFX"
|
"WraithFX1", "Demon1FX1", "Demon2FX1", "FireDemonMissile", "CentaurFX", "SerpentFX"
|
||||||
|
@ -282,6 +287,11 @@ class Korax : Actor
|
||||||
|
|
||||||
void KoraxFire (Class<Actor> type, int arm)
|
void KoraxFire (Class<Actor> type, int arm)
|
||||||
{
|
{
|
||||||
|
if (!target)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
static const int extension[] =
|
static const int extension[] =
|
||||||
{
|
{
|
||||||
KORAX_ARM_EXTENSION_SHORT,
|
KORAX_ARM_EXTENSION_SHORT,
|
||||||
|
|
Loading…
Reference in a new issue