From: Rudolf Polzer Date: Sun, 19 Jun 2011 17:16:22 +0000 (+0200) Subject: add an alternate ang logic that fails (#if 0) X-Git-Tag: xonotic-v0.5.0~199^2~14^2~2^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=86664719ab43a3c474ff378a7f035e2fead26a42;p=xonotic%2Fxonotic-data.pk3dir.git add an alternate ang logic that fails (#if 0) --- diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index fffc72485..a3a699771 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -494,7 +494,13 @@ void Draw_WaypointSprite() } else { +#if 1 ang = M_PI; +#else + vector d; + d = o - '0.5 0 0' * vid_conwidth - '0 0.5 0' * vid_conheight; + ang = atan2(-d_x, -d_y); +#endif } o_z = 0;