From: Mario Date: Sat, 13 Dec 2014 11:49:16 +0000 (+1100) Subject: Remove even more fteqcc junk X-Git-Tag: xonotic-v0.8.0~95 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c49159d4984f73681c0d54d720ec06dca2c70c7;p=xonotic%2Fxonotic-data.pk3dir.git Remove even more fteqcc junk --- diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 4e8e1b59c..3f4c3e57f 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -1,23 +1,6 @@ -#ifdef FTEQCC -#pragma flag enable subscope -#pragma flag enable lo -#endif - -// FTEQCC can do this -// #define HAVE_YO_DAWG_CPP -// No, this is an ex-"feature" and non-C11. - #ifndef NOCOMPAT //# define WORKAROUND_XON010 //# define COMPAT_XON050_ENGINE # define COMPAT_NO_MOD_IS_XONOTIC # define COMPAT_XON060_DONTCRASH_CHECKPVS #endif - -#ifdef FTEQCC -#ifdef WATERMARK -const string FTEQCC_SUCKS_WATERMARKS_THROUGH_C60_FULLERENES = WATERMARK(); -#undef WATERMARK -#define WATERMARK FTEQCC_SUCKS_WATERMARKS_THROUGH_C60_FULLERENES -#endif -#endif diff --git a/qcsrc/fteqcc-bugs.qc b/qcsrc/fteqcc-bugs.qc deleted file mode 100644 index dd4fd45f3..000000000 --- a/qcsrc/fteqcc-bugs.qc +++ /dev/null @@ -1,30 +0,0 @@ -void error(...) = #1; -float id(float x) { return x; } - -void Oassignments(float foo) // pass 1 -{ - float bar; - bar = 2; - bar = (foo ? 0 : (foo & 1)); - if(bar == 2) - error("FTEQCC SUCKS"); -} - -void Oreturn_only(float foo) // pass 0 -{ - if(foo) - { - return; - } -} - -void Oreturn_only_trap(void) -{ - error("FTEQCC SUCKS"); -} - -.float fld; -void Ono_assignments(entity e, float wep) // pass an e with e.fld == 1, and wep == 3. e.fld will be 2 instead of 3. Observe the INDIRECT and the SUB use the same field for storage, wreaking havoc. -{ - ((e).fld |= id(wep - 1)); -} diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 913a5a037..1d4753660 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -1137,20 +1137,6 @@ void SV_PlayerPhysics() self.jumppadcount = 0; } -#ifdef LETS_TEST_FTEQCC - if(self.velocity_x || self.velocity_y) - { - // good - } - else - { - if(self.velocity_x) - checkclient(); - if(self.velocity_y) - checkclient(); - } -#endif - v = self.velocity; v_z = 0; f = vlen(v);