mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
GameTypeRules: Add GTR_NOPOSITION
Says on the tin - introtime == starttime.
This commit is contained in:
parent
d84ee59887
commit
57b1ad15a5
3 changed files with 17 additions and 10 deletions
|
|
@ -5854,6 +5854,7 @@ const char *const GAMETYPERULE_LIST[] = {
|
|||
|
||||
"NOMP",
|
||||
"NOCUPSELECT",
|
||||
"NOPOSITION",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -563,6 +563,7 @@ enum GameTypeRules
|
|||
|
||||
GTR_NOMP = 1<<22, // No multiplayer
|
||||
GTR_NOCUPSELECT = 1<<23, // Your maps are not selected via cup.
|
||||
GTR_NOPOSITION = 1<<24, // No POSITION
|
||||
|
||||
// free: to and including 1<<31
|
||||
};
|
||||
|
|
|
|||
|
|
@ -186,7 +186,12 @@ void K_TimerInit(void)
|
|||
}
|
||||
}
|
||||
|
||||
starttime = (introtime + (3*TICRATE)) + ((2*TICRATE) + (numbulbs * bulbtime)); // Start countdown time, + buffer time
|
||||
starttime = introtime;
|
||||
if (!(gametyperules & GTR_NOPOSITION))
|
||||
{
|
||||
// Start countdown time + buffer time
|
||||
starttime += ((3*TICRATE) + ((2*TICRATE) + (numbulbs * bulbtime)));
|
||||
}
|
||||
}
|
||||
|
||||
K_BattleInit(domodeattack);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue