aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2008-10-05 12:22:37 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2008-10-05 12:22:37 +0000
commit808495cb41329afe45f919f238e1a863056f57f0 (patch)
treee713bd71c4cc2e0d175d822e32cd04b001a002f3
parent736da74ebae173f57823d66d40974d6a7bc0f434 (diff)
downloadpuzzles-808495cb41329afe45f919f238e1a863056f57f0.zip
puzzles-808495cb41329afe45f919f238e1a863056f57f0.tar.gz
puzzles-808495cb41329afe45f919f238e1a863056f57f0.tar.bz2
puzzles-808495cb41329afe45f919f238e1a863056f57f0.tar.xz
Apply "103_fix-unequal-digit-h.diff" from the Debian package:
Unequal 18x18 or above was unplayable due to a clash with the undocumented "H" (hint) key. Resolve the clash by making the hint function only fire when no square is selected. [originally from svn r8200]
-rw-r--r--unequal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unequal.c b/unequal.c
index 320dedf..20fc2d2 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1296,8 +1296,6 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
return "";
}
}
- if (button == 'H' || button == 'h')
- return dupstr("H");
if (ui->hx != -1 && ui->hy != -1) {
debug(("button %d, cbutton %d", button, (int)((char)button)));
@@ -1323,6 +1321,10 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
return dupstr(buf);
}
+
+ if (button == 'H' || button == 'h')
+ return dupstr("H");
+
return NULL;
}