X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/a440f184767511bdda309d1c2e51719c1c2a7ca6..3c9562a2f71995e2a6f6d6fee0bcead2bebfdebc:/net.c diff --git a/net.c b/net.c index ad970b6..eb83a16 100644 --- 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. */ - 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 @@ -2826,7 +2824,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize) #endif const struct game thegame = { - "Net", "games.net", + "Net", "games.net", "net", default_params, game_fetch_preset, decode_params,