]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add an alternate ang logic that fails (#if 0)
authorRudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 17:16:22 +0000 (19:16 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 17:16:22 +0000 (19:16 +0200)
qcsrc/client/waypointsprites.qc

index fffc72485235682c8994514f595cf0a4af027013..a3a699771193c417660c2652bbe92f04632dcf3b 100644 (file)
@@ -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;