diff options
author | June McEnroe <june@causal.agency> | 2019-03-22 17:11:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-03-22 17:11:09 -0400 |
commit | ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e (patch) | |
tree | 599e397d9fcf1bd42639d45866824e1ad2e5813f | |
parent | Treat multi-clicks as double-clicks (diff) | |
download | cards-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.tar.gz cards-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.zip |
Treat multiple-of-two-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 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; } |