]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Rework game specific hacks to have a special group for Nexuiz-derived games.
[xonotic/darkplaces.git] / common.h
index 1324da27cda9b088ccb5cb060d6799b3a2751982..3d962211f6b830a9582c1ce1bffe4778d75d3da7 100644 (file)
--- a/common.h
+++ b/common.h
@@ -295,10 +295,16 @@ typedef enum gamemode_e
        GAME_TOMESOFMEPHISTOPHELES, // added by motorsep
        GAME_STRAPBOMB, // added by motorsep for Urre
        GAME_MOONHELM,
+       GAME_VORETOURNAMENT,
        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)
+// Pre-csqcmodels era.
+#define IS_OLDNEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_VORETOURNAMENT)
+
 extern gamemode_t gamemode;
 extern const char *gamename;
 extern const char *gamedirname1;