]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix mouse handling of quickmenu and radar
authorterencehill <piuntn@gmail.com>
Sun, 28 Aug 2016 21:46:15 +0000 (23:46 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 28 Aug 2016 21:46:15 +0000 (23:46 +0200)
qcsrc/client/hud/panel/quickmenu.qc
qcsrc/client/hud/panel/radar.qc

index 65997f46ebb0a9199ff8dde59756e88663b6d593..8616492d20eb6676a82c599dba5f55427107a4bd 100644 (file)
@@ -504,6 +504,7 @@ void QuickMenu_Mouse()
                mousepos.y = bound(0, mousepos.y, vid_conheight);
        }
 
+       panel = HUD_PANEL(QUICKMENU);
        HUD_Panel_LoadCvars();
 
        if(panel_bg_padding)
index 9f967aae0587b35bd3bbdad2528e20d0f26d056d..2c71c8e63dc7ab6d37085a4d055fad51722ed390 100644 (file)
@@ -145,6 +145,7 @@ void HUD_Radar_Mouse()
                mousepos_y = bound(0, mousepos_y, vid_conheight);
        }
 
+       panel = HUD_PANEL(RADAR);
        HUD_Panel_LoadCvars();