]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
added GAME_GOODVSBAD2 and GAME_TEU
[xonotic/darkplaces.git] / common.c
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;