]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/fteqcc-bugs.qc
Clean up debug stuff
[xonotic/xonotic-data.pk3dir.git] / qcsrc / fteqcc-bugs.qc
index e426e93f932f1cce4a59af1e5ccf84ed7df7d5cf..dd4fd45f3c6c474df9403afa5e06319fa2ead225 100644 (file)
@@ -1,4 +1,5 @@
 void error(...) = #1;
+float id(float x) { return x; }
 
 void Oassignments(float foo) // pass 1
 {
@@ -21,3 +22,9 @@ 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));
+}