summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-22 17:11:09 -0400
committerJune McEnroe <june@causal.agency>2019-03-22 17:11:09 -0400
commitae0f5af1467fb144f0e8b4b01ab92d37e6142a1e (patch)
tree599e397d9fcf1bd42639d45866824e1ad2e5813f
parentTreat multi-clicks as double-clicks (diff)
downloadwep-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.tar.gz
wep-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.zip
Treat multiple-of-two-clicks as double-clicks
-rw-r--r--sol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sol.c b/sol.c
index ceaa9cf..0a0740c 100644
--- a/sol.c
+++ b/sol.c
@@ -335,7 +335,7 @@ static bool mouseButtonDown(SDL_MouseButtonEvent button) {
 	struct Item *item = layoutFind(&point);
 	if (!item) return false;
 	if (!gameAvail(item->card)) return gameReveal(item->card);
-	if (button.clicks > 1) {
+	if (button.clicks % 2 == 0) {
 		for (uint dest = Foundation1; dest <= Foundation4; ++dest) {
 			if (gameMove(dest, item->card)) return true;
 		}