aboutsummaryrefslogtreecommitdiff
path: root/singles.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-04-20 14:46:46 +0100
committerSimon Tatham <anakin@pobox.com>2023-04-20 17:30:03 +0100
commit348aac4c85da21e09c29c58866d178df3204d73c (patch)
treeeff802bf3ef3b5459bbe268e35328b1155cf3472 /singles.c
parentdad2f35502c611dae758915cfb6dface4a303550 (diff)
downloadpuzzles-348aac4c85da21e09c29c58866d178df3204d73c.zip
puzzles-348aac4c85da21e09c29c58866d178df3204d73c.tar.gz
puzzles-348aac4c85da21e09c29c58866d178df3204d73c.tar.bz2
puzzles-348aac4c85da21e09c29c58866d178df3204d73c.tar.xz
Remove size parameter from dsf init and copy functions.
Now that the dsf knows its own size internally, there's no need to tell it again when one is copied or reinitialised. This makes dsf_init much more about *re*initialising a dsf, since now dsfs are always allocated using a function that will initialise them anyway. So I think it deserves a rename.
Diffstat (limited to 'singles.c')
-rw-r--r--singles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/singles.c b/singles.c
index 06333b6..376d744 100644
--- a/singles.c
+++ b/singles.c
@@ -439,7 +439,7 @@ static void connect_dsf(game_state *state, DSF *dsf)
/* Construct a dsf array for connected blocks; connections
* tracked to right and down. */
- dsf_init(dsf, state->n);
+ dsf_reinit(dsf);
for (x = 0; x < state->w; x++) {
for (y = 0; y < state->h; y++) {
i = y*state->w + x;