From: FruitieX Date: Sat, 3 Jul 2010 13:35:26 +0000 (+0300) Subject: also check the order of the panels when finding out with mouse cursor to draw :) X-Git-Tag: xonotic-v0.1.0preview~457^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=759de1b8070576a4cfdd6b6177b668c46640d6b6;p=xonotic%2Fxonotic-data.pk3dir.git also check the order of the panels when finding out with mouse cursor to draw :) --- 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;