GameTypeRules: Add GTR_NOPOSITION

Says on the tin - introtime == starttime.
This commit is contained in:
toaster 2023-03-26 21:59:38 +01:00
parent d84ee59887
commit 57b1ad15a5
3 changed files with 17 additions and 10 deletions

View file

@ -5854,6 +5854,7 @@ const char *const GAMETYPERULE_LIST[] = {
"NOMP",
"NOCUPSELECT",
"NOPOSITION",
NULL
};

View file

@ -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
};

View file

@ -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);