]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Unbreak the merge
authorNick S <nick@teichisma.info>
Thu, 29 Jun 2023 21:52:07 +0000 (00:52 +0300)
committerNick S <nick@teichisma.info>
Thu, 29 Jun 2023 21:52:07 +0000 (00:52 +0300)
qcsrc/common/mapobjects/trigger/jumppads.qc

index 4dc68505740a7a1decf0dc9a21f62e98c7123db5..f7281e5e4ae2619098dffa22cefb386b9236105f 100644 (file)
@@ -249,23 +249,8 @@ bool jumppad_push(entity this, entity targ, bool is_velocity_pad)
 
        vector org = targ.origin;
 
-       if(STAT(Q3COMPAT, targ) || this.spawnflags & PUSH_STATIC)
-       {
+       if(Q3COMPAT_COMMON || this.spawnflags & PUSH_STATIC)
                org = (this.absmin + this.absmax) * 0.5;
-       }
-
-       bool already_pushed = false;
-       if(is_velocity_pad) // remember velocity jump pads
-       {
-               if(this == targ.last_pushed || (targ.last_pushed && !STAT(Q3COMPAT, targ))) // if q3compat is active overwrite last stored jump pad, otherwise ignore
-               {
-                       already_pushed = true;
-               }
-               else
-               {
-                       targ.last_pushed = this; // may be briefly out of sync between client and server if client prediction is toggled
-               }
-       }
 
        bool already_pushed = false;
        if(is_velocity_pad) // remember velocity jump pads