From: Rudolf Polzer Date: Sun, 15 Aug 2010 12:48:21 +0000 (+0200) Subject: fix calculation of WarpZone_TraceToss_time if no warpzones exist X-Git-Tag: xonotic-v0.1.0preview~350 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cdc586689fc09e15ce264b960bc611c793b0fea0;p=xonotic%2Fxonotic-data.pk3dir.git fix calculation of WarpZone_TraceToss_time if no warpzones exist --- diff --git a/qcsrc/warpzonelib/common.qc b/qcsrc/warpzonelib/common.qc index 360652d6f..cf8da710d 100644 --- a/qcsrc/warpzonelib/common.qc +++ b/qcsrc/warpzonelib/common.qc @@ -303,6 +303,8 @@ void WarpZone_TraceToss_ThroughZone(entity e, entity forent, entity zone, WarpZo vector vf, vr, vu, v0, o0; entity wz; + o0 = e.origin; + WarpZone_Trace_InitTransform(); WarpZone_tracetoss_time = 0; if(!warpzone_warpzones_exist) @@ -318,7 +320,6 @@ void WarpZone_TraceToss_ThroughZone(entity e, entity forent, entity zone, WarpZo vf = v_forward; vr = v_right; vu = v_up; - o0 = e.origin; v0 = e.velocity; // if starting in warpzone, first transform