From: Mario Date: Fri, 25 Dec 2015 00:50:05 +0000 (+1000) Subject: Fix up a couple more cases X-Git-Tag: xonotic-v0.8.2~1387 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98a80868938c5da10af562d30b970f698c39555d;p=xonotic%2Fxonotic-data.pk3dir.git Fix up a couple more cases --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index c725c69a7..a4240680a 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -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(); diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index 64db8da8f..36734976c 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -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; }