~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the Cygwin RCFLAGS in the light of recent changes.
[sgt/puzzles]
/
net.c
diff --git
a/net.c
b/net.c
index
ad970b6
..
eb83a16
100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-521,9
+521,7
@@
static int net_solver(int w, int h, unsigned char *tiles,
* classes) by finding the representative of each tile and
* setting equivalence[one]=the_other.
*/
* classes) by finding the representative of each tile and
* setting equivalence[one]=the_other.
*/
- equivalence = snewn(w * h, int);
- for (i = 0; i < w*h; i++)
- equivalence[i] = i; /* initially all distinct */
+ equivalence = snew_dsf(w * h);
/*
* On a non-wrapping grid, we instantly know that all the edges
/*
* On a non-wrapping grid, we instantly know that all the edges
@@
-2826,7
+2824,7
@@
static void game_print(drawing *dr, game_state *state, int tilesize)
#endif
const struct game thegame = {
#endif
const struct game thegame = {
- "Net", "games.net",
+ "Net", "games.net",
"net",
default_params,
game_fetch_preset,
decode_params,
default_params,
game_fetch_preset,
decode_params,