mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Allow only ring capsules to spawn in Record Attack, and add the ability for Extra to invert this behavior
This commit is contained in:
parent
459c5615af
commit
9151d31512
1 changed files with 10 additions and 0 deletions
10
src/p_mobj.c
10
src/p_mobj.c
|
|
@ -10745,6 +10745,16 @@ static boolean P_AllowMobjSpawn(mapthing_t* mthing, mobjtype_t i)
|
||||||
if (modifiedgame && !savemoddata)
|
if (modifiedgame && !savemoddata)
|
||||||
return false; // No cheating!!
|
return false; // No cheating!!
|
||||||
|
|
||||||
|
break;
|
||||||
|
case MT_ITEMCAPSULE:
|
||||||
|
// in record attack, only spawn ring capsules
|
||||||
|
// (behavior can be inverted with the Extra flag, i.e. item capsule spawns and ring capsule does not)
|
||||||
|
if (modeattacking)
|
||||||
|
{
|
||||||
|
boolean isRingCapsule = (mthing->angle < 1 || mthing->angle == KITEM_SUPERRING || mthing->angle >= NUMKARTITEMS);
|
||||||
|
if (!(mthing->options & MTF_EXTRA) == !isRingCapsule)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue