From: Rudolf Polzer Date: Sun, 3 Jul 2011 17:00:16 +0000 (+0200) Subject: add a macro -DNOCOMPAT to remove compat support for older releases X-Git-Tag: xonotic-v0.5.0~151^2~2^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b622b7a0011ffd53f3547cea0fdbc31d6e78ee71;p=xonotic%2Fxonotic-data.pk3dir.git add a macro -DNOCOMPAT to remove compat support for older releases --- diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index cc37ed570..29b9103e9 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -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 diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 98deeef46..f5633ab3f 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -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