~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keyboard control patch for Solo, from James H.
[sgt/puzzles]
/
pegs.c
diff --git
a/pegs.c
b/pegs.c
index
d1addd1
..
7ac0ac8
100644
(file)
--- a/
pegs.c
+++ b/
pegs.c
@@
-711,6
+711,11
@@
static char *solve_game(game_state *state, game_state *currstate,
return NULL;
}
return NULL;
}
+static int game_can_format_as_text_now(game_params *params)
+{
+ return TRUE;
+}
+
static char *game_text_format(game_state *state)
{
int w = state->w, h = state->h;
static char *game_text_format(game_state *state)
{
int w = state->w, h = state->h;
@@
-1201,7
+1206,7
@@
const struct game thegame = {
dup_game,
free_game,
FALSE, solve_game,
dup_game,
free_game,
FALSE, solve_game,
- TRUE, game_text_format,
+ TRUE, game_
can_format_as_text_now, game_
text_format,
new_ui,
free_ui,
encode_ui,
new_ui,
free_ui,
encode_ui,