From b622b7a0011ffd53f3547cea0fdbc31d6e78ee71 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 3 Jul 2011 19:00:16 +0200 Subject: [PATCH] add a macro -DNOCOMPAT to remove compat support for older releases --- qcsrc/common/constants.qh | 2 +- qcsrc/common/util-pre.qh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.2