]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
removed the FTEQCC_YOU_SUCK macro
authorRudolf Polzer <divverent@xonotic.org>
Mon, 17 Dec 2012 14:28:50 +0000 (15:28 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 17 Dec 2012 14:28:50 +0000 (15:28 +0100)
qcsrc/common/util.qh
qcsrc/server/antilag.qc
qcsrc/server/g_tetris.qc

index 56c44daab4e1a587e5b6a6521e13aa2f0ca9b072..c9f1f49f418aeff4d97f012b6e9b3a8f220fbc49 100644 (file)
@@ -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);
index 24671db6fea899ba6b1a6b4f44f256c4022043fd..5e0a91a3e897241196d0179e4467d7ca3f169ed0 100644 (file)
@@ -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;
index 59bb23aa98a4ba6225baa0cdcf498f353eda8258..db2c9a45c14d9a5690deb7e13b6dd0cc917b48a9 100644 (file)
@@ -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