mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into will-it-blend
This commit is contained in:
commit
32c40dd7d6
3 changed files with 10 additions and 3 deletions
|
|
@ -122,6 +122,11 @@ void K_TimerReset(void)
|
|||
g_pointlimit = 0;
|
||||
}
|
||||
|
||||
boolean K_ShouldSpawnDuelItems(void)
|
||||
{
|
||||
return (inDuel == true || (grandprixinfo.gp && grandprixinfo.eventmode == GPEVENT_BONUS));
|
||||
}
|
||||
|
||||
static void K_SpawnItemCapsules(void)
|
||||
{
|
||||
mapthing_t *mt = mapthings;
|
||||
|
|
@ -263,7 +268,7 @@ void K_TimerInit(void)
|
|||
timelimitintics = K_TimeLimitForGametype();
|
||||
g_pointlimit = K_PointLimitForGametype();
|
||||
|
||||
if (inDuel == true)
|
||||
if (K_ShouldSpawnDuelItems())
|
||||
{
|
||||
K_SpawnDuelOnlyItems();
|
||||
}
|
||||
|
|
@ -4217,7 +4222,7 @@ void K_UpdateSliptideZipIndicator(player_t *player)
|
|||
return;
|
||||
}
|
||||
|
||||
if (player->stumbleIndicator == NULL || P_MobjWasRemoved(player->stumbleIndicator) == true)
|
||||
if (player->sliptideZipIndicator == NULL || P_MobjWasRemoved(player->sliptideZipIndicator) == true)
|
||||
{
|
||||
K_InitSliptideZipIndicator(player);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -214,6 +214,8 @@ void K_KartEbrakeVisuals(player_t *p);
|
|||
void K_HandleDirectionalInfluence(player_t *player);
|
||||
fixed_t K_DefaultPlayerRadius(player_t *player);
|
||||
|
||||
boolean K_ShouldSpawnDuelItems(void);
|
||||
|
||||
// sound stuff for lua
|
||||
void K_PlayAttackTaunt(mobj_t *source);
|
||||
void K_PlayBoostTaunt(mobj_t *source);
|
||||
|
|
|
|||
|
|
@ -12771,7 +12771,7 @@ static boolean P_AllowMobjSpawn(mapthing_t* mthing, mobjtype_t i)
|
|||
break;
|
||||
}
|
||||
|
||||
if (inDuel == false)
|
||||
if (!K_ShouldSpawnDuelItems())
|
||||
{
|
||||
if (K_IsDuelItem(i) == true
|
||||
&& K_DuelItemAlwaysSpawns(mthing) == false)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue