From: Rudolf Polzer Date: Mon, 17 Dec 2012 14:28:50 +0000 (+0100) Subject: removed the FTEQCC_YOU_SUCK macro X-Git-Tag: xonotic-v0.7.0~186 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33c5e35731acb088008db89e456b43a1f5d6af2f;p=xonotic%2Fxonotic-data.pk3dir.git removed the FTEQCC_YOU_SUCK macro --- diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 598706ccf..2bdaf1f1d 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -140,12 +140,6 @@ vector mi_pictexcoord3; // texcoords of the image corners (after transforming, t void get_mi_min_max_texcoords(float mode); #endif -#ifdef FTEQCC -#define FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(x) void reference_##x() { x = x; } -#else -#define FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(x) -#endif - float almost_equals(float a, float b); float almost_in_bounds(float a, float b, float c); @@ -230,7 +224,7 @@ void WriteInt24_t(float dest, float val); #endif // the NULL function -var void func_null(void); FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(func_null) +var void func_null(void); var string string_null; float float2range11(float f); float float2range01(float f); diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index 24671db6f..5e0a91a3e 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -1,6 +1,6 @@ #define ANTILAG_MAX_ORIGINS 64 -.vector antilag_origins[ANTILAG_MAX_ORIGINS]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(antilag_origins) -.float antilag_times[ANTILAG_MAX_ORIGINS]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(antilag_times) +.vector antilag_origins[ANTILAG_MAX_ORIGINS]; +.float antilag_times[ANTILAG_MAX_ORIGINS]; .float antilag_index; .vector antilag_saved_origin; .float antilag_takenback; diff --git a/qcsrc/server/g_tetris.qc b/qcsrc/server/g_tetris.qc index 59bb23aa9..db2c9a45c 100644 --- a/qcsrc/server/g_tetris.qc +++ b/qcsrc/server/g_tetris.qc @@ -1244,6 +1244,14 @@ float TetrisPostFrame() #else -FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(autocvar_g_bastet) +float TetrisPostFrame() +{ + if (autocvar_g_bastet) + { + cvar_set("g_bastet", "0"); + print("The useless cvar has been toggled.\n"); + } + return 0; +} #endif