aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-02-16 15:13:28 +0000
committerSimon Tatham <anakin@pobox.com>2010-02-16 15:13:28 +0000
commit2887a1da69c8d075ab99c6515479158c32072517 (patch)
treea2997dc343b5662e049e5134fc7401790b67aa27
parentb39f9dfb99e1a93aec7a372ce0bf39678d12fd9e (diff)
downloadpuzzles-2887a1da69c8d075ab99c6515479158c32072517.zip
puzzles-2887a1da69c8d075ab99c6515479158c32072517.tar.gz
puzzles-2887a1da69c8d075ab99c6515479158c32072517.tar.bz2
puzzles-2887a1da69c8d075ab99c6515479158c32072517.tar.xz
'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. [originally from svn r8867]
-rw-r--r--signpost.c2
1 files changed, 1 insertions, 1 deletions
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 {