From cdc586689fc09e15ce264b960bc611c793b0fea0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 15 Aug 2010 14:48:21 +0200 Subject: [PATCH] fix calculation of WarpZone_TraceToss_time if no warpzones exist --- qcsrc/warpzonelib/common.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2