]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unnecessary ifdef by using STAT(Q3COMPAT) in SVQC as well as CSQC
authorbones_was_here <bones_was_here@yahoo.com.au>
Wed, 5 Aug 2020 02:16:28 +0000 (12:16 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Wed, 5 Aug 2020 02:16:28 +0000 (12:16 +1000)
qcsrc/common/mapobjects/trigger/jumppads.qc

index 25be467807fa2404f55fc088cce2a484323e9531..98fb32e03471ed51a077c45caa9b093b3b7a72d8 100644 (file)
@@ -134,11 +134,8 @@ bool jumppad_push(entity this, entity targ)
                return false;
 
        vector org = targ.origin;
-#ifdef SVQC
-       if(q3compat)
-#elif defined(CSQC)
+
        if(STAT(Q3COMPAT))
-#endif
        {
                org.z += targ.mins_z;
                org.z += 1; // off by 1!