~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I've been meaning to do this for ages: all the Makefiles now give
[sgt/puzzles]
/
pattern.c
diff --git
a/pattern.c
b/pattern.c
index
e9b6f98
..
3d5c11f
100644
(file)
--- a/
pattern.c
+++ b/
pattern.c
@@
-106,11
+106,11
@@
static void decode_params(game_params *ret, char const *string)
char const *p = string;
ret->w = atoi(p);
char const *p = string;
ret->w = atoi(p);
- while (*p && isdigit(*p)) p++;
+ while (*p && isdigit(
(unsigned char)
*p)) p++;
if (*p == 'x') {
p++;
ret->h = atoi(p);
if (*p == 'x') {
p++;
ret->h = atoi(p);
- while (*p && isdigit(*p)) p++;
+ while (*p && isdigit(
(unsigned char)
*p)) p++;
} else {
ret->h = ret->w;
}
} else {
ret->h = ret->w;
}
@@
-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;
}