mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Do not consider 0 a valid executor tag for bosses
This commit is contained in:
parent
d7a84b967c
commit
a4bcf4e2ce
1 changed files with 3 additions and 3 deletions
|
@ -3938,7 +3938,7 @@ static void P_DoBossVictory(mobj_t *mo)
|
|||
}
|
||||
|
||||
// victory!
|
||||
if (mo->spawnpoint)
|
||||
if (mo->spawnpoint && mo->spawnpoint->args[3])
|
||||
P_LinedefExecute(mo->spawnpoint->args[3], mo, NULL);
|
||||
|
||||
if (stoppedclock && modeattacking) // if you're just time attacking, skip making the capsule appear since you don't need to step on it anyways.
|
||||
|
@ -4157,7 +4157,7 @@ void A_BossDeath(mobj_t *mo)
|
|||
if (LUA_CallAction(A_BOSSDEATH, mo))
|
||||
return;
|
||||
|
||||
if (mo->spawnpoint)
|
||||
if (mo->spawnpoint && mo->spawnpoint->args[2])
|
||||
P_LinedefExecute(mo->spawnpoint->args[2], mo, NULL);
|
||||
mo->health = 0;
|
||||
|
||||
|
@ -7136,7 +7136,7 @@ void A_Boss1Chase(mobj_t *actor)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (actor->spawnpoint)
|
||||
if (actor->spawnpoint && actor->spawnpoint->args[4])
|
||||
P_LinedefExecute(actor->spawnpoint->args[4], actor, NULL);
|
||||
P_SetMobjState(actor, actor->info->raisestate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue