]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
q3compat: use the correct origin for q3 jump pads
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sun, 29 Jan 2023 14:46:47 +0000 (15:46 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sun, 29 Jan 2023 14:46:55 +0000 (15:46 +0100)
qcsrc/common/mapobjects/trigger/jumppads.qc

index eee980618d8b2b47341963aeed3e34b54556ba6d..07af623ddcce7bedcbfbfb90b5030fbc637c0c8d 100644 (file)
@@ -137,8 +137,7 @@ bool jumppad_push(entity this, entity targ)
 
        if(STAT(Q3COMPAT))
        {
-               org.z += targ.mins_z;
-               org.z += 1; // off by 1!
+               org = (this.absmin + this.absmax) * 0.5;
        }
 
        if(this.enemy)