Replace all gametypes with Thokker on menu

This commit is contained in:
RedEnchilada 2016-02-21 12:29:06 -06:00
parent b3127da2e8
commit 8f7a1b3d1d

View file

@ -389,6 +389,7 @@ CV_PossibleValue_t gametype_cons_t[] =
{GT_CTF, "CTF"}, {GT_CTF, "CTF"},
{0, NULL} {0, NULL}
}; };
CV_PossibleValue_t gametype_cons_t_thokker[] = {{GT_TEAMMATCH, "Thokker"}};
consvar_t cv_newgametype = {"newgametype", "Co-op", CV_HIDEN|CV_CALL, gametype_cons_t, Newgametype_OnChange, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_newgametype = {"newgametype", "Co-op", CV_HIDEN|CV_CALL, gametype_cons_t, Newgametype_OnChange, 0, NULL, NULL, 0, 0, NULL};
static CV_PossibleValue_t serversort_cons_t[] = { static CV_PossibleValue_t serversort_cons_t[] = {
@ -2670,6 +2671,11 @@ void M_Ticker(void)
// //
void M_Init(void) void M_Init(void)
{ {
if (M_CheckParm("-nothokker") == 0) {
cv_newgametype.PossibleValue = gametype_cons_t_thokker;
cv_newgametype.defaultvalue = "Thokker";
}
CV_RegisterVar(&cv_nextmap); CV_RegisterVar(&cv_nextmap);
CV_RegisterVar(&cv_newgametype); CV_RegisterVar(&cv_newgametype);
CV_RegisterVar(&cv_chooseskin); CV_RegisterVar(&cv_chooseskin);