From: terencehill Date: Fri, 19 Nov 2010 08:15:15 +0000 (+0100) Subject: Fix 2 checks and use cursorsize X-Git-Tag: xonotic-v0.5.0~406 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=481fcb9d81de251b9e2b1ad2c33499b3128774e8;p=xonotic%2Fxonotic-data.pk3dir.git Fix 2 checks and use cursorsize --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 228666164..9962ec811 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1156,7 +1156,7 @@ float HUD_Panel_HighlightCheck() vector panelPos; vector panelSize; - while(j <= HUD_PANEL_NUM) + while(j < HUD_PANEL_NUM) { i = panel_order[j]; j += 1; @@ -1240,7 +1240,7 @@ void HUD_Panel_Highlight() vector panelPos; vector panelSize; - while(j <= HUD_PANEL_NUM) + while(j < HUD_PANEL_NUM) { i = panel_order[j]; j += 1; @@ -1417,13 +1417,13 @@ void HUD_Panel_Mouse() cursorsize = '32 32 0'; if(highlightcheck == 0) - drawpic(mousepos, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor.tga"), '32 32 0', '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); + drawpic(mousepos, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor.tga"), cursorsize, '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); else if(highlightcheck == 1) - drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_move.tga"), '32 32 0', '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); + drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_move.tga"), cursorsize, '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); else if(highlightcheck == 2) - drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_resize.tga"), '32 32 0', '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); + drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_resize.tga"), cursorsize, '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); else - drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_resize2.tga"), '32 32 0', '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); + drawpic(mousepos - cursorsize * 0.5, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor_resize2.tga"), cursorsize, '1 1 1', hud_fade_alpha, DRAWFLAG_NORMAL); prevMouseClicked = mouseClicked; }