From: havoc Date: Wed, 2 Jul 2003 05:44:34 +0000 (+0000) Subject: added GAME_GOODVSBAD2 and GAME_TEU X-Git-Tag: xonotic-v0.1.0preview~6574 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e8ece671dadf039d6fd48fda721cdd627d137af0;p=xonotic%2Fdarkplaces.git added GAME_GOODVSBAD2 and GAME_TEU git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3135 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.c b/common.c index ab20b2c5..4aa67bec 100644 --- a/common.c +++ b/common.c @@ -678,6 +678,10 @@ void COM_InitGameType (void) gamemode = GAME_HIPNOTIC; else if (strstr(name, "rogue")) gamemode = GAME_ROGUE; + else if (strstr(name, "goodvsbad2")) + gamemode = GAME_GOODVSBAD2; + else if (strstr(name, "teu")) + gamemode = GAME_TEU; else gamemode = GAME_NORMAL; @@ -693,6 +697,10 @@ void COM_InitGameType (void) gamemode = GAME_ROGUE; else if (COM_CheckParm ("-quake")) gamemode = GAME_NORMAL; + else if (COM_CheckParm ("-goodvsbad2")) + gamemode = GAME_GOODVSBAD2; + else if (COM_CheckParm ("-teu")) + gamemode = GAME_TEU; switch(gamemode) { @@ -720,6 +728,14 @@ void COM_InitGameType (void) gamename = "Transfusion"; gamedirname = "transfusion"; break; + case GAME_GOODVSBAD2: + gamename = "GoodVs.Bad2"; + gamedirname = "rts"; + break; + case GAME_TEU: + gamename = "TheEvilUnleashed"; + gamedirname = "teu"; + break; default: Sys_Error("COM_InitGameType: unknown gamemode %i\n", gamemode); break; diff --git a/common.h b/common.h index 8a52aba9..274f0240 100644 --- a/common.h +++ b/common.h @@ -168,6 +168,8 @@ extern struct cvar_s registered; #define GAME_NEHAHRA 3 #define GAME_NEXUIZ 4 #define GAME_TRANSFUSION 5 +#define GAME_GOODVSBAD2 6 +#define GAME_TEU 7 extern int gamemode; extern char *gamename;