]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
also properly calc the margin
authorRudolf Polzer <divVerent@xonotic.org>
Sun, 19 Jun 2011 16:41:07 +0000 (18:41 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 19 Jun 2011 16:41:07 +0000 (18:41 +0200)
qcsrc/client/waypointsprites.qc

index 12e8b954321b9a817a8265b6ef8ad6aa901b7d4e..d671d8451938acf36699a26738476d6f5a4e7241 100644 (file)
@@ -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