chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forbid undo of new-game if it would change the params.
[sgt-puzzles.git]
/
pearl.c
diff --git
a/pearl.c
b/pearl.c
index c289ec6ac94af1a918ce9b86e22791bd0016e2d9..c6c305f3f22a477d69e177b78770ef04b590d588 100644
(file)
--- a/
pearl.c
+++ b/
pearl.c
@@
-1610,8
+1610,6
@@
static void check_completion(game_state *state, int mark)
*/
for (i = 0; i < w*h; i++) {
int comp = dsf_canonify(dsf, i);
*/
for (i = 0; i < w*h; i++) {
int comp = dsf_canonify(dsf, i);
- if (component_state[comp] == COMP_PATH)
- comp = -1; /* part of the 'all paths' quasi-component */
if ((component_state[comp] == COMP_PATH &&
-1 != largest_comp) ||
(component_state[comp] == COMP_LOOP &&
if ((component_state[comp] == COMP_PATH &&
-1 != largest_comp) ||
(component_state[comp] == COMP_LOOP &&
@@
-2610,7
+2608,7
@@
static void game_print(drawing *dr, const game_state *state, int tilesize)
const struct game thegame = {
"Pearl", "games.pearl", "pearl",
default_params,
const struct game thegame = {
"Pearl", "games.pearl", "pearl",
default_params,
- game_fetch_preset,
+ game_fetch_preset,
NULL,
decode_params,
encode_params,
free_params,
decode_params,
encode_params,
free_params,