From 9b31ed25d8b92be550b0a91959ac9bede3aea159 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 1 Nov 2006 11:31:20 +0000 Subject: 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] --- map.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index 4ab6c4f..d70d428 100644 --- a/map.c +++ b/map.c @@ -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; -- cgit v1.1