~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MinGW windres doesn't like an empty resource file, so invent a resource to
[sgt/puzzles]
/
galaxies.c
diff --git
a/galaxies.c
b/galaxies.c
index
e10db3a
..
6989fe3
100644
(file)
--- a/
galaxies.c
+++ b/
galaxies.c
@@
-298,8
+298,8
@@
static void add_assoc(game_state *state, space *tile, space *dot) {
tile->dotx = dot->x;
tile->doty = dot->y;
dot->nassoc++;
tile->dotx = dot->x;
tile->doty = dot->y;
dot->nassoc++;
- debug(("add_assoc sp %d %d --> dot %d,%d, new nassoc %d.\n",
- tile->x, tile->y, dot->x, dot->y, dot->nassoc));
+
/*
debug(("add_assoc sp %d %d --> dot %d,%d, new nassoc %d.\n",
+ tile->x, tile->y, dot->x, dot->y, dot->nassoc));
*/
}
static struct space *sp2dot(game_state *state, int x, int y)
}
static struct space *sp2dot(game_state *state, int x, int y)
@@
-2205,7
+2205,7
@@
static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
solver_obvious(tmp);
else
solver_state(tmp, DIFF_UNREASONABLE-1);
solver_obvious(tmp);
else
solver_state(tmp, DIFF_UNREASONABLE-1);
- ret = diff_game(state, tmp,
0
);
+ ret = diff_game(state, tmp,
1
);
free_game(tmp);
return ret;
}
free_game(tmp);
return ret;
}
@@
-2594,6
+2594,7
@@
static game_state *execute_move(game_state *state, char *move)
#endif
} else if (c == 'S') {
move++;
#endif
} else if (c == 'S') {
move++;
+ ret->used_solve = 1;
} else
goto badmove;
} else
goto badmove;
@@
-3230,11
+3231,11
@@
const struct game thegame = {
FALSE, FALSE, NULL, NULL,
TRUE, /* wants_statusbar */
#else
FALSE, FALSE, NULL, NULL,
TRUE, /* wants_statusbar */
#else
- TRUE,
TRU
E, game_print_size, game_print,
+ TRUE,
FALS
E, game_print_size, game_print,
FALSE, /* wants_statusbar */
#endif
FALSE, game_timing_state,
FALSE, /* wants_statusbar */
#endif
FALSE, game_timing_state,
-
0,
/* flags */
+
REQUIRE_RBUTTON,
/* flags */
};
#ifdef STANDALONE_SOLVER
};
#ifdef STANDALONE_SOLVER