]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix calculation of WarpZone_TraceToss_time if no warpzones exist
authorRudolf Polzer <divverent@alientrap.org>
Sun, 15 Aug 2010 12:48:21 +0000 (14:48 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 15 Aug 2010 12:48:21 +0000 (14:48 +0200)
qcsrc/warpzonelib/common.qc

index 360652d6f24eafa9b4d2b708f8dcf1543e47cf67..cf8da710dc7c1e6a3bbecb8259a988bfd1cca002 100644 (file)
@@ -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