]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a macro -DNOCOMPAT to remove compat support for older releases
authorRudolf Polzer <divverent@xonotic.org>
Sun, 3 Jul 2011 17:00:16 +0000 (19:00 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 3 Jul 2011 17:00:16 +0000 (19:00 +0200)
qcsrc/common/constants.qh
qcsrc/common/util-pre.qh

index cc37ed57086fa58d6eeba5d9b1464a7b54599008..29b9103e983fea8de44365011cf177a6aab4113f 100644 (file)
@@ -429,7 +429,7 @@ const float STAT_DOM_PPS_YELLOW = 104;
 #define SP_SCORE 3
 // game mode specific indices are not in common/, but in server/scores_rules.qc!
 
-#ifdef XON020_CHANNELS
+#ifdef COMPAT_XON010_CHANNELS
 float CH_INFO = 0; // only on world and csqc
 float CH_TRIGGER = 0; // only on players; compat: FALSELY CONTROLLED BY "Info"
 float CH_WEAPON_A = 1; // only on players and entities
index 98deeef46a2d8a5d0e84d1fc3cc9425b99f7f927..f5633ab3f31dec7546438633407c4feb6edede7a 100644 (file)
@@ -1,5 +1,7 @@
 #pragma flag enable subscope
 #pragma flag enable lo
 
-#define WORKAROUND_XON010
-#define XON020_CHANNELS
+#ifndef NOCOMPAT
+# define WORKAROUND_XON010
+# define COMPAT_XON010_CHANNELS
+#endif