From 834cfa56a90d416e6a4bbdcdbc4fc37603893f29 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 17 Dec 2012 15:28:50 +0100 Subject: [PATCH] removed the FTEQCC_YOU_SUCK macro --- qcsrc/common/util.qh | 8 +------- qcsrc/server/antilag.qc | 4 ++-- qcsrc/server/g_tetris.qc | 10 +++++++++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 56c44daab..c9f1f49f4 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 -- 2.39.2