~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops; forgot to check in the copy-to-clipboard option for Windows.
[sgt/puzzles]
/
twiddle.c
diff --git
a/twiddle.c
b/twiddle.c
index
162f68b
..
e296f48
100644
(file)
--- a/
twiddle.c
+++ b/
twiddle.c
@@
-291,7
+291,8
@@
static int grid_complete(int *grid, int wh, int orientable)
return ok;
}
return ok;
}
-static char *new_game_seed(game_params *params, random_state *rs)
+static char *new_game_seed(game_params *params, random_state *rs,
+ game_aux_info **aux)
{
int *grid;
int w = params->w, h = params->h, n = params->n, wh = w*h;
{
int *grid;
int w = params->w, h = params->h, n = params->n, wh = w*h;
@@
-358,6
+359,11
@@
static char *new_game_seed(game_params *params, random_state *rs)
return ret;
}
return ret;
}
+void game_free_aux_info(game_aux_info *aux)
+{
+ assert(!"Shouldn't happen");
+}
+
static char *validate_seed(game_params *params, char *seed)
{
char *p, *err;
static char *validate_seed(game_params *params, char *seed)
{
char *p, *err;
@@
-985,6
+991,7
@@
const struct game thegame = {
TRUE, game_configure, custom_params,
validate_params,
new_game_seed,
TRUE, game_configure, custom_params,
validate_params,
new_game_seed,
+ game_free_aux_info,
validate_seed,
new_game,
dup_game,
validate_seed,
new_game,
dup_game,