]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add a new game definition
authorMario <mario@smbclan.net>
Sat, 18 Mar 2017 04:01:42 +0000 (14:01 +1000)
committerMario <mario@smbclan.net>
Sat, 18 Mar 2017 04:01:42 +0000 (14:01 +1000)
common.c
common.h

index c01e931d798e2a87dbd502e27fec90bfb458fedc..746d2832d04a5c6d8a8266223fd0771bb2ae5846 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1480,6 +1480,7 @@ static const gamemode_info_t gamemode_info [GAME_COUNT] =
 { GAME_STRAPBOMB,                              GAME_STRAPBOMB,                         "strapbomb",                    "-strapbomb",                           "Strap-on-bomb Car",            "Strap-on-bomb_Car",            "id1",          NULL,                   "strap",                        "strapbomb"                             }, // COMMANDLINEOPTION: Game: -strapbomb runs the game Strap-on-bomb Car
 { GAME_MOONHELM,                               GAME_MOONHELM,                          "moonhelm",                             "-moonhelm",                            "MoonHelm",                                     "MoonHelm",                                     "data",         NULL,                   "mh",                           "moonhelm"                              }, // COMMANDLINEOPTION: Game: -moonhelm runs the game MoonHelm
 { GAME_VORETOURNAMENT,                 GAME_VORETOURNAMENT,            "voretournament",               "-voretournament",                      "Vore Tournament",                      "Vore_Tournament",                      "data",         NULL,                   "voretournament",       "voretournament"                }, // COMMANDLINEOPTION: Game: -voretournament runs the multiplayer game Vore Tournament
+{ GAME_SUPERMECHANICALBROS,            GAME_SUPERMECHANICALBROS,       "supermechanicalbros",  "-supermechanicalbros",         "Super Mechanical Bros",        "Super_Mechanical_Bros",        "data",         NULL,                   "smb",                          "supermechanicalbros"   }, // COMMANDLINEOPTION: Game: -supermechanicalbros runs the multiplayer game Super Mechanical Bros
 };
 
 static void COM_SetGameType(int index);
index bd5d7b073f81095c80c5d632c510a504bf21edcb..38c36db2722555f460bf617af680a8f38e582200 100644 (file)
--- a/common.h
+++ b/common.h
@@ -298,12 +298,13 @@ typedef enum gamemode_e
        GAME_STRAPBOMB, // added by motorsep for Urre
        GAME_MOONHELM,
        GAME_VORETOURNAMENT,
+       GAME_SUPERMECHANICALBROS,
        GAME_COUNT
 }
 gamemode_t;
 
 // Master switch for some hacks/changes that eventually should become cvars.
-#define IS_NEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_XONOTIC || (g) == GAME_VORETOURNAMENT)
+#define IS_NEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_XONOTIC || (g) == GAME_VORETOURNAMENT || (g) == GAME_SUPERMECHANICALBROS)
 // Pre-csqcmodels era.
 #define IS_OLDNEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_VORETOURNAMENT)