Merge branch 'allow-battle-capsule-in-tutorial' into 'master'

Allow MT_BATTLECAPSULE to spawn in tutorials

Closes #949

See merge request KartKrew/Kart!1890
This commit is contained in:
Eidolon 2024-02-06 01:45:18 +00:00
commit 0e1f688139

View file

@ -807,10 +807,14 @@ static void P_SpawnMapThings(boolean spawnemblems)
continue; // These were already spawned
}
if (mt->type == mobjinfo[MT_BATTLECAPSULE].doomednum
|| mt->type == mobjinfo[MT_ITEMCAPSULE].doomednum)
if (mt->type == mobjinfo[MT_ITEMCAPSULE].doomednum)
{
continue; // These will spawn later
continue; // These will spawn later (in k_battle.c K_BattleInit)
}
if (mt->type == mobjinfo[MT_BATTLECAPSULE].doomednum && gametype != GT_TUTORIAL)
{
continue; // These will spawn later (in k_battle.c K_BattleInit), unless we're in a tutorial
}
if (!spawnemblems && mt->type == mobjinfo[MT_EMBLEM].doomednum)