]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add GAME_NEXIUZ gamemode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:51:31 +0000 (02:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:51:31 +0000 (02:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2617 d7cf8633-e32d-0410-b094-e92efae38249

common.c
common.h

index 584bd837881759c23879e48d1fbd64129613d3d1..a10d08b7d078c778a83e1454fe4a775e5520a834 100644 (file)
--- 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";
index ce8b6eaf21d3c7134d4138c490a49e33b3f4c8f9..1aac4caa14fb0f0d1120322ff6d97430da22fae9 100644 (file)
--- 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;