From: simon Date: Sat, 12 May 2007 08:14:37 +0000 (+0000) Subject: Remove the check for disconnected pieces; it's over-general and X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/6ce42e60a5d04df7628254fae6490aa5a8124eb7 Remove the check for disconnected pieces; it's over-general and triggers on a perfectly connected piece shaped like an inverted T. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7570 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unfinished/slide.c b/unfinished/slide.c index 854d483..7af2e26 100644 --- a/unfinished/slide.c +++ b/unfinished/slide.c @@ -896,7 +896,7 @@ static char *validate_desc(game_params *params, char *desc) int w = params->w, h = params->h, wh = w*h; int *active, *link; int mains = 0, mpos = -1; - int i, j, tx, ty, minmoves; + int i, tx, ty, minmoves; char *ret; active = snewn(wh, int); @@ -941,13 +941,6 @@ static char *validate_desc(game_params *params, char *desc) } link[i] = i - dist; - for (j = i; j > 0; j = link[j]) - if (j == i-1 || j == i-w) - break; - if (j < 0) { - ret = "Disconnected piece in game description"; - goto done; - } active[i] = TRUE; active[link[i]] = FALSE;