]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hud: correctly identify icon_right_align as an int
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 27 Mar 2016 09:05:18 +0000 (20:05 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 27 Mar 2016 09:05:18 +0000 (20:05 +1100)
qcsrc/client/hud/hud.qc
qcsrc/client/hud/hud.qh

index 99605536018ba17e8a9fabe330b7af957079f938..d89f3106454f1a29abbc5d015438b9cdbd94a679 100644 (file)
@@ -243,9 +243,9 @@ void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theA
        drawsubpic(pos + eX * mySize.x - eX * min(mySize.x * 0.5, mySize.y), eX * min(mySize.x * 0.5, mySize.y) + eY * mySize.y, pic, '0.75 0 0', '0.25 1 0', color, theAlpha, drawflag);
 }
 
-void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, bool vertical, bool icon_right_align, vector color, float theAlpha, float fadelerp)
+void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, bool vertical, int icon_right_align, vector color, float theAlpha, float fadelerp)
 {
-    TC(bool, vertical); TC(bool, icon_right_align);
+    TC(bool, vertical); TC(int, icon_right_align);
        vector newPos = '0 0 0', newSize = '0 0 0';
        vector picpos, numpos;
 
index 7664abc2f165359ad1b0a849f8feda2e3b322069..d46b11db571a7044d2acfec43562a8da05cbdb3f 100644 (file)
@@ -44,7 +44,7 @@ void HUD_Radar_Hide_Maximized();
 float HUD_GetRowCount(int item_count, vector size, float item_aspect);
 vector HUD_Get_Num_Color (float x, float maxvalue);
 void DrawNumIcon(vector myPos, vector mySize, float x, string icon, bool vertical, bool icon_right_align, vector color, float theAlpha);
-void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, bool vertical, bool icon_right_align, vector color, float theAlpha, float fadelerp);
+void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, bool vertical, int icon_right_align, vector color, float theAlpha, float fadelerp);
 void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theAlpha, int drawflag);
 vector HUD_GetTableSize_BestItemAR(int item_count, vector psize, float item_aspect);