diff options
| author | Simon Tatham <anakin@pobox.com> | 2006-11-01 11:31:20 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2006-11-01 11:31:20 +0000 |
| commit | 9b31ed25d8b92be550b0a91959ac9bede3aea159 (patch) | |
| tree | fcefc9d3d49d63ba63715c6f2782b5cf7fdc012b /net.c | |
| parent | fe4fd0ebc5eddb411d1d3dd521ef462799705e00 (diff) | |
| download | puzzles-9b31ed25d8b92be550b0a91959ac9bede3aea159.zip puzzles-9b31ed25d8b92be550b0a91959ac9bede3aea159.tar.gz puzzles-9b31ed25d8b92be550b0a91959ac9bede3aea159.tar.bz2 puzzles-9b31ed25d8b92be550b0a91959ac9bede3aea159.tar.xz | |
Mike's changes to dsf.c alter the internal storage format of dsf
structures, meaning that ad-hoc initialisation now doesn't work.
Hence, this checkin converts all ad-hoc dsf initialisations into
calls to dsf_init() or snew_dsf(). At least, I _hope_ I've caught
all of them.
[originally from svn r6888]
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |