From: Mario Date: Sat, 18 Mar 2017 04:01:42 +0000 (+1000) Subject: Add a new game definition X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=82f5411404f368dc79f433e80eebfcc7a5421de4;p=xonotic%2Fdarkplaces.git Add a new game definition --- diff --git a/common.c b/common.c index c01e931d..746d2832 100644 --- 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); diff --git a/common.h b/common.h index bd5d7b07..38c36db2 100644 --- 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)