]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added GAME_GOODVSBAD2 and GAME_TEU
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Jul 2003 05:44:34 +0000 (05:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Jul 2003 05:44:34 +0000 (05:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3135 d7cf8633-e32d-0410-b094-e92efae38249

common.c
common.h

index ab20b2c5c4025b889e5970ec547bcb2048354464..4aa67becb9361c06e3424c1ad1e484257406c785 100644 (file)
--- 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;
index 8a52aba9559ebb9a535ac5abae8781afcf5be79a..274f0240b49b8ba5dfda9b8b94fe09eab01ecba4 100644 (file)
--- 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;