~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Black Box: fix "reveal" button location, explain what's meant by the
[sgt/puzzles]
/
pattern.c
diff --git
a/pattern.c
b/pattern.c
index
5ef032f
..
3f2d65e
100644
(file)
--- a/
pattern.c
+++ b/
pattern.c
@@
-165,7
+165,7
@@
static game_params *custom_params(config_item *cfg)
return ret;
}
return ret;
}
-static char *validate_params(game_params *params)
+static char *validate_params(game_params *params
, int full
)
{
if (params->w <= 0 || params->h <= 0)
return "Width and height must both be greater than zero";
{
if (params->w <= 0 || params->h <= 0)
return "Width and height must both be greater than zero";
@@
-1159,7
+1159,7
@@
static int game_wants_statusbar(void)
return FALSE;
}
return FALSE;
}
-static int game_timing_state(game_state *state)
+static int game_timing_state(game_state *state
, game_ui *ui
)
{
return TRUE;
}
{
return TRUE;
}
@@
-1243,15
+1243,12
@@
int main(int argc, char **argv)
{
game_params *p;
game_state *s;
{
game_params *p;
game_state *s;
- int recurse = TRUE;
char *id = NULL, *desc, *err;
char *id = NULL, *desc, *err;
- int y, x;
- int grade = FALSE;
while (--argc > 0) {
char *p = *++argv;
if (*p == '-') {
while (--argc > 0) {
char *p = *++argv;
if (*p == '-') {
- fprintf(stderr, "%s: unrecognised option `%s'\n", argv[0]);
+ fprintf(stderr, "%s: unrecognised option `%s'\n", argv[0]
, p
);
return 1;
} else {
id = p;
return 1;
} else {
id = p;