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]
This commit is contained in:
Jacob Nevins
2008-10-05 12:22:37 +00:00
parent 736da74eba
commit 808495cb41

View File

@ -1296,8 +1296,6 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
return ""; return "";
} }
} }
if (button == 'H' || button == 'h')
return dupstr("H");
if (ui->hx != -1 && ui->hy != -1) { if (ui->hx != -1 && ui->hy != -1) {
debug(("button %d, cbutton %d", button, (int)((char)button))); 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); return dupstr(buf);
} }
if (button == 'H' || button == 'h')
return dupstr("H");
return NULL; return NULL;
} }