]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
When the hud editor is active disable other mouse and input event handlers since...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index ce70cef5ad5016ffa83790c677c86745934d6151..3a6d60742fb80ec78844047ff09048745195f78a 100644 (file)
@@ -363,9 +363,11 @@ void PostInit()
 // In the case of mouse input after a setcursormode(1) call, nPrimary is xpos, nSecondary is ypos.
 float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
 {
-    TC(int, bInputType);
-    bool override = false;
+       TC(int, bInputType);
+       bool override = false;
        override |= HUD_Panel_InputEvent(bInputType, nPrimary, nSecondary);
+       if (override)
+               return true;
 
        override |= QuickMenu_InputEvent(bInputType, nPrimary, nSecondary);