Skip to content
Snippets Groups Projects
Commit 4b0f5ed7 authored by echicken's avatar echicken
Browse files

Only do mouse things if left click (button 0, press true)

parent da017e62
No related branches found
No related tags found
No related merge requests found
...@@ -970,7 +970,7 @@ var Level = function (l, n) { ...@@ -970,7 +970,7 @@ var Level = function (l, n) {
if (userInput.mouse !== null) { if (userInput.mouse !== null) {
// If it wasn't a left-click // If it wasn't a left-click
if (userInput.mouse.button != 0) return ret; if (userInput.mouse.button != 0 && !userInput.mouse.press) return ret;
// If they clicked inside the statusbar region ... // If they clicked inside the statusbar region ...
if (userInput.mouse.y >= frames.statusBar.y && userInput.mouse.y <= frames.statusBar.y + 1) { if (userInput.mouse.y >= frames.statusBar.y && userInput.mouse.y <= frames.statusBar.y + 1) {
if (userInput.mouse.x < frames.labels[KEY_BOMB].x) { if (userInput.mouse.x < frames.labels[KEY_BOMB].x) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment