From f867188fe2dd8cc3fdb20931cf60ab99eb6a4601 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 16 Feb 2010 15:13:28 +0000 Subject: [PATCH] 'Fix' an assertion failure during play: accidentally connecting a long chain to a square numbered so low that the start of the chain would have to go into negative numbers should not crash the game, particularly when it happens as a momentary in-passing illustration. I've fixed it for the moment just by removing the assertion. There's probably a better fix which causes something less strange to happen to the display as a result. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8867 cda61777-01e9-0310-a592-d414129be87e --- signpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signpost.c b/signpost.c index 5aa738e..21b05c9 100644 --- a/signpost.c +++ b/signpost.c @@ -1834,7 +1834,7 @@ static void tile_redraw(drawing *dr, game_drawstate *ds, int tx, int ty, /* Draw text (number or set). */ if (num != 0) { - assert(num > 0); + /* assert(num > 0); - actually, no, this obstructs legal play */ if (set == 0) { sprintf(buf, "%d", n); } else { -- 2.11.0