mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Allow all capsule spawns in Tutorial
This commit is contained in:
parent
9ed05b5c21
commit
f2b364fd48
1 changed files with 23 additions and 19 deletions
42
src/k_kart.c
42
src/k_kart.c
|
|
@ -150,33 +150,37 @@ static void K_SpawnItemCapsules(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
modeFlags = mt->thing_args[3];
|
if (gametype != GT_TUTORIAL) // Don't prevent capsule spawn via modeflags in Tutorial
|
||||||
if (modeFlags == TMICM_DEFAULT)
|
|
||||||
{
|
{
|
||||||
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
|
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);
|
P_SpawnMapThing(mt);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue