]> 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 b18064b1d46094048f59d00d9d3f9e714e414211..3d962211f6b830a9582c1ce1bffe4778d75d3da7 100644 (file)
--- a/common.h
+++ b/common.h
@@ -300,6 +300,11 @@ typedef enum gamemode_e
 }
 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;