~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply "103_fix-unequal-digit-h.diff" from the Debian package:
[sgt/puzzles]
/
rect.c
diff --git
a/rect.c
b/rect.c
index
fb8f787
..
c77e5b7
100644
(file)
--- a/
rect.c
+++ b/
rect.c
@@
-1692,7
+1692,7
@@
static char *new_game_desc(game_params *params, random_state *rs,
/*
* If we've succeeded, then terminate the loop.
*/
/*
* If we've succeeded, then terminate the loop.
*/
- if (ret)
+ if (ret
== 1
)
break;
}
break;
}
@@
-2043,6
+2043,11
@@
static char *solve_game(game_state *state, game_state *currstate,
return ret;
}
return ret;
}
+static int game_can_format_as_text_now(game_params *params)
+{
+ return TRUE;
+}
+
static char *game_text_format(game_state *state)
{
char *ret, *p, buf[80];
static char *game_text_format(game_state *state)
{
char *ret, *p, buf[80];
@@
-2878,7
+2883,7
@@
const struct game thegame = {
dup_game,
free_game,
TRUE, solve_game,
dup_game,
free_game,
TRUE, 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,