]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
also check the order of the panels when finding out with mouse cursor to draw :)
authorFruitieX <rasse@rasse-lappy.localdomain>
Sat, 3 Jul 2010 13:35:26 +0000 (16:35 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sat, 3 Jul 2010 13:35:26 +0000 (16:35 +0300)
qcsrc/client/hud.qc

index 4308b8680ec7117208c04d4b650f2301896de958..4d94de3074b55fe1e80990793cbb8f039b260eff 100644 (file)
@@ -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;