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]
This commit is contained in:
Simon Tatham
2006-11-01 11:31:20 +00:00
parent fe4fd0ebc5
commit 9b31ed25d8
4 changed files with 8 additions and 18 deletions

3
map.c
View File

@ -1695,8 +1695,7 @@ static char *parse_edge_list(game_params *params, char **desc, int *map)
int i, k, pos, state;
char *p = *desc;
for (i = 0; i < wh; i++)
map[wh+i] = i;
dsf_init(map+wh, wh);
pos = -1;
state = 0;