diff options
author | June McEnroe <june@causal.agency> | 2019-03-22 16:24:11 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-03-22 16:24:11 -0400 |
commit | 1e6482a59c81e547c339db1f5da482800f1d2aeb (patch) | |
tree | 510583b2d28072a47bb6ef682db385798a1e42ab | |
parent | Add d key (diff) | |
download | cards-1e6482a59c81e547c339db1f5da482800f1d2aeb.tar.gz cards-1e6482a59c81e547c339db1f5da482800f1d2aeb.zip |
Treat multi-clicks as double-clicks
Diffstat (limited to '')
-rw-r--r-- | sol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sol.c b/sol.c index 5c4df78..ceaa9cf 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 == 2) { + if (button.clicks > 1) { for (uint dest = Foundation1; dest <= Foundation4; ++dest) { if (gameMove(dest, item->card)) return true; } |