From b0091f9035bfca9a47f6878e7841dd27fd28cf5c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 19 Jun 2011 18:41:07 +0200 Subject: [PATCH] also properly calc the margin --- qcsrc/client/waypointsprites.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2