]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Map vote: capture and ignore right mouse click; it prevents zooming while holding...
authorterencehill <piuntn@gmail.com>
Sun, 27 Dec 2020 16:20:08 +0000 (17:20 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 27 Dec 2020 16:20:08 +0000 (17:20 +0100)
qcsrc/client/mapvoting.qc

index 0d2db8724640986bfa29c1a6d687a73cbd493dbf..d6ee23046cdcf74c1044ef24a376999691aa6e98 100644 (file)
@@ -899,6 +899,9 @@ float MapVote_InputEvent(int bInputType, float nPrimary, float nSecondary)
                        imp = min(mv_selection + 1, mv_num_maps);
        }
 
+       if (nPrimary == K_MOUSE2)
+               return true; // do nothing
+
        if (imp)
        {
                if (!key_pressed)