~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In Windows/Gtk front-ends, consistently use the ellipsis convention for naming
[sgt/puzzles]
/
bridges.c
diff --git
a/bridges.c
b/bridges.c
index
be173ff
..
a8fd8b3
100644
(file)
--- a/
bridges.c
+++ b/
bridges.c
@@
-1064,8
+1064,7
@@
static void map_group(game_state *state)
struct island *is, *is_join;
/* Initialise dsf. */
struct island *is, *is_join;
/* Initialise dsf. */
- for (i = 0; i < wh; i++)
- dsf[i] = i;
+ dsf_init(dsf, wh);
/* For each island, find connected islands right or down
* and merge the dsf for the island squares as well as the
/* For each island, find connected islands right or down
* and merge the dsf for the island squares as well as the
@@
-1602,9
+1601,8
@@
static game_state *new_state(game_params *params)
ret->solved = ret->completed = 0;
ret->solver = snew(struct solver_state);
ret->solved = ret->completed = 0;
ret->solver = snew(struct solver_state);
- ret->solver->dsf = snew
n(wh, int
);
+ ret->solver->dsf = snew
_dsf(wh
);
ret->solver->tmpdsf = snewn(wh, int);
ret->solver->tmpdsf = snewn(wh, int);
- for (i = 0; i < wh; i++) ret->solver->dsf[i] = i;
ret->solver->refcount = 1;
ret->solver->refcount = 1;
@@
-2631,7
+2629,7
@@
static void game_print(drawing *dr, game_state *state, int ts)
#endif
const struct game thegame = {
#endif
const struct game thegame = {
- "Bridges", "games.bridges",
+ "Bridges", "games.bridges",
"bridges",
default_params,
game_fetch_preset,
decode_params,
default_params,
game_fetch_preset,
decode_params,