From: Rudolf Polzer Date: Sun, 19 Jun 2011 16:41:07 +0000 (+0200) Subject: also properly calc the margin X-Git-Tag: xonotic-v0.5.0~199^2~14^2~2^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0091f9035bfca9a47f6878e7841dd27fd28cf5c;p=xonotic%2Fxonotic-data.pk3dir.git also properly calc the margin --- diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index 12e8b9543..d671d8451 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -114,6 +114,7 @@ vector drawspritearrow(vector o, float ang, vector rgb, float a, float t) float TSIZE; TSIZE = 8 * t; float RLENGTH; RLENGTH = 8 * t; float RWIDTH; RWIDTH = 4 * t; + float MLENGTH; MLENGTH = 4 * t; R_BeginPolygon("", DRAWFLAG_NORMAL); R_PolygonVertex(o + rotate(eX * -(TSIZE + BORDER * (1 + SQRT2)) + eY * (TSIZE + BORDER), ang), '0 0 0', '0 0 0', a); @@ -140,7 +141,7 @@ vector drawspritearrow(vector o, float ang, vector rgb, float a, float t) R_EndPolygon(); return - o + rotate('0 20 0'*t, ang); + o + rotate(eY * (TSIZE + RLENGTH + MLENGTH), ang); } // returns location of sprite healthbar