]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use vectoangles2 properly
authorRudolf Polzer <divverent@xonotic.org>
Sat, 26 Nov 2011 09:55:14 +0000 (10:55 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 26 Nov 2011 09:55:14 +0000 (10:55 +0100)
qcsrc/warpzonelib/server.qc

index 3d4a750455a3e5947b073e3c62e698a9d347ea74..6c27842ef27f2066034a09e7bc81dd3e372bb074 100644 (file)
@@ -571,7 +571,7 @@ void WarpZone_InitStep_UpdateTransform()
                                print("Position target of trigger_warpzone near ", vtos(self.aiment.origin), " points into trigger_warpzone. BEWARE.\n");
                                norm = -1 * norm;
                        }
-                       ang = vectoangles(norm, v_up); // keep rotation, but turn exactly against plane
+                       ang = vectoangles2(norm, v_up); // keep rotation, but turn exactly against plane
                        ang_x = -ang_x;
                        if(norm * v_forward < 0.99)
                                print("trigger_warpzone near ", vtos(self.aiment.origin), " has been turned to match plane orientation (", vtos(self.aiment.angles), " -> ", vtos(ang), "\n");