From f2b364fd48f7813ff09ae5e708ef3f36ec6feff4 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Wed, 15 Nov 2023 23:19:13 -0700 Subject: [PATCH] Allow all capsule spawns in Tutorial --- src/k_kart.c | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 371c54227..fb72aeaf8 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -150,33 +150,37 @@ static void K_SpawnItemCapsules(void) continue; } - modeFlags = mt->thing_args[3]; - if (modeFlags == TMICM_DEFAULT) + if (gametype != GT_TUTORIAL) // Don't prevent capsule spawn via modeflags in Tutorial { - if (isRingCapsule == true) + modeFlags = mt->thing_args[3]; + if (modeFlags == TMICM_DEFAULT) { - modeFlags = TMICM_MULTIPLAYER|TMICM_TIMEATTACK; + if (isRingCapsule == true) + { + modeFlags = TMICM_MULTIPLAYER|TMICM_TIMEATTACK; + } + else + { + modeFlags = TMICM_MULTIPLAYER; + } + } + + if (K_CapsuleTimeAttackRules() == true) + { + if ((modeFlags & TMICM_TIMEATTACK) == 0) + { + continue; + } } else { - modeFlags = TMICM_MULTIPLAYER; + if ((modeFlags & TMICM_MULTIPLAYER) == 0) + { + continue; + } } } - if (K_CapsuleTimeAttackRules() == true) - { - if ((modeFlags & TMICM_TIMEATTACK) == 0) - { - continue; - } - } - else - { - if ((modeFlags & TMICM_MULTIPLAYER) == 0) - { - continue; - } - } P_SpawnMapThing(mt); }