From: Rudolf Polzer Date: Sat, 26 Nov 2011 09:55:14 +0000 (+0100) Subject: use vectoangles2 properly X-Git-Tag: xonotic-v0.6.0~35^2~33^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=709d38b8950b415582cb7fa06646ad78f3fa233a;p=xonotic%2Fxonotic-data.pk3dir.git use vectoangles2 properly --- diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 3d4a75045..6c27842ef 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -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");