From: havoc Date: Sun, 10 Nov 2002 02:51:31 +0000 (+0000) Subject: add GAME_NEXIUZ gamemode X-Git-Tag: RELEASE_0_2_0_RC1~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=00ca5f39cd5c7640de9c915c1f6792f2bd4108d9;p=xonotic%2Fdarkplaces.git add GAME_NEXIUZ gamemode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2617 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.c b/common.c index 584bd837..a10d08b7 100644 --- a/common.c +++ b/common.c @@ -795,6 +795,8 @@ void COM_InitGameType (void) if (strstr(name, "transfusion")) gamemode = GAME_TRANSFUSION; + else if (strstr(name, "nexiuz")) + gamemode = GAME_NEXIUZ; else if (strstr(name, "nehahra")) gamemode = GAME_NEHAHRA; else if (strstr(name, "hipnotic")) @@ -806,6 +808,8 @@ void COM_InitGameType (void) if (COM_CheckParm ("-transfusion")) gamemode = GAME_TRANSFUSION; + else if (COM_CheckParm ("-nexiuz")) + gamemode = GAME_NEXIUZ; else if (COM_CheckParm ("-nehahra")) gamemode = GAME_NEHAHRA; else if (COM_CheckParm ("-hipnotic")) @@ -833,6 +837,10 @@ void COM_InitGameType (void) gamename = "DarkPlaces-Nehahra"; gamedirname = "nehahra"; break; + case GAME_NEXIUZ: + gamename = "Nexiuz"; + gamedirname = "data"; + break; case GAME_TRANSFUSION: gamename = "Transfusion"; gamedirname = "transfusion"; diff --git a/common.h b/common.h index ce8b6eaf..1aac4caa 100644 --- a/common.h +++ b/common.h @@ -171,7 +171,8 @@ extern struct cvar_s registered; #define GAME_HIPNOTIC 1 #define GAME_ROGUE 2 #define GAME_NEHAHRA 3 -#define GAME_TRANSFUSION 4 +#define GAME_NEXIUZ 4 +#define GAME_TRANSFUSION 5 extern int gamemode; extern char *gamename;