From 759de1b8070576a4cfdd6b6177b668c46640d6b6 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sat, 3 Jul 2010 16:35:26 +0300 Subject: [PATCH] also check the order of the panels when finding out with mouse cursor to draw :) --- qcsrc/client/hud.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 4308b8680..4d94de307 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1125,12 +1125,15 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) float HUD_Panel_HighlightCheck() { - float i, border; + float i, j, border; vector panelPos; vector panelSize; - for(i = 0; i < HUD_PANEL_NUM; ++i) + while(j <= HUD_PANEL_NUM) { + i = panel_order[j]; + j += 1; + HUD_Panel_UpdatePosSizeForId(i) panelPos = panel_pos; -- 2.39.2