]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix up a couple more cases
authorMario <mario@smbclan.net>
Fri, 25 Dec 2015 00:50:05 +0000 (10:50 +1000)
committerMario <mario@smbclan.net>
Fri, 25 Dec 2015 00:50:05 +0000 (10:50 +1000)
qcsrc/lib/warpzone/common.qc
qcsrc/server/antilag.qc

index c725c69a7ba2b93ad6e9d63675976a498d3ab76d..a4240680a4a573c606b78959dae62e61fe938908 100644 (file)
@@ -387,7 +387,8 @@ void WarpZone_TraceToss_ThroughZone(entity e, entity forent, entity zone, WarpZo
                        goto fail;
                }
                WarpZone_Trace_AddTransform(wz);
-               setorigin(e, WarpZone_TransformOrigin(wz, e.origin));
+               vector org = WarpZone_TransformOrigin(wz, e.origin);
+               setorigin(e, org);
                e.velocity = WarpZone_TransformVelocity(wz, e.velocity);
        }
        WarpZone_MakeAllSolid();
index 64db8da8f0ce1beb759bf4250ae657fba1c52310..36734976c4c058e4c0bd0218bef674df624eeb03 100644 (file)
@@ -97,7 +97,8 @@ void antilag_takeback(entity e, float t)
        if(!e.antilag_takenback)
                e.antilag_saved_origin = e.origin;
 
-       setorigin(e, antilag_takebackorigin(e, t));
+       vector org = antilag_takebackorigin(e, t);
+       setorigin(e, org);
        e.antilag_takenback = true;
 }