~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing `i' in `\e'
[sgt/puzzles]
/
netslide.c
diff --git
a/netslide.c
b/netslide.c
index
b16cb0b
..
206535b
100644
(file)
--- a/
netslide.c
+++ b/
netslide.c
@@
-213,16
+213,16
@@
static void decode_params(game_params *ret, char const *string)
ret->movetarget = 0;
ret->width = atoi(p);
ret->movetarget = 0;
ret->width = atoi(p);
- while (*p && isdigit(*p)) p++;
+ while (*p && isdigit(
(unsigned char)
*p)) p++;
if (*p == 'x') {
p++;
ret->height = atoi(p);
if (*p == 'x') {
p++;
ret->height = atoi(p);
- while (*p && isdigit(*p)) p++;
+ while (*p && isdigit(
(unsigned char)
*p)) p++;
if ( (ret->wrapping = (*p == 'w')) != 0 )
p++;
if (*p == 'b') {
ret->barrier_probability = atof(++p);
if ( (ret->wrapping = (*p == 'w')) != 0 )
p++;
if (*p == 'b') {
ret->barrier_probability = atof(++p);
- while (*p && (isdigit(*p) || *p == '.')) p++;
+ while (*p && (isdigit(
(unsigned char)
*p) || *p == '.')) p++;
}
if (*p == 'm') {
ret->movetarget = atoi(++p);
}
if (*p == 'm') {
ret->movetarget = atoi(++p);
@@
-309,7
+309,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->width <= 1 || params->height <= 1)
return "Width and height must both be greater than one";
{
if (params->width <= 1 || params->height <= 1)
return "Width and height must both be greater than one";
@@
-1776,7
+1776,7
@@
static int game_wants_statusbar(void)
return TRUE;
}
return TRUE;
}
-static int game_timing_state(game_state *state)
+static int game_timing_state(game_state *state
, game_ui *ui
)
{
return FALSE;
}
{
return FALSE;
}