Bowser isn't a boss, so don't call A_BossDeath just to do that one thing it needs to do

This commit is contained in:
MascaraSnake 2021-12-27 08:55:59 +01:00
parent c550de5dfa
commit a14eacd63a
2 changed files with 2 additions and 6 deletions

View file

@ -4178,10 +4178,6 @@ void A_BossDeath(mobj_t *mo)
case MT_CYBRAKDEMON:
P_DoCybrakdemonDeath(mo);
break;
case MT_KOOPA:
if (mo->spawnpoint)
EV_DoCeiling(mo->spawnpoint->args[0], NULL, raiseToHighest);
break;
case MT_FANG:
P_DoBoss5Death(mo);
break;

View file

@ -6939,7 +6939,6 @@ static void P_RemoveOverlay(mobj_t *thing)
}
}
void A_BossDeath(mobj_t *mo);
// AI for the Koopa boss.
static void P_KoopaThinker(mobj_t *koopa)
{
@ -6947,7 +6946,8 @@ static void P_KoopaThinker(mobj_t *koopa)
if (koopa->watertop > koopa->z + koopa->height + FixedMul(128*FRACUNIT, koopa->scale) && koopa->health > 0)
{
A_BossDeath(koopa);
if (koopa->spawnpoint)
EV_DoCeiling(koopa->spawnpoint->args[0], NULL, raiseToHighest);
P_RemoveMobj(koopa);
return;
}