From: Simon Tatham Date: Mon, 18 Jan 2010 21:23:27 +0000 (+0000) Subject: Fix from James H: the shared code between drawing and printing X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4;p=sgt-puzzles.git Fix from James H: the shared code between drawing and printing should use state->adjacent rather than ds->adjacent, because the latter won't be initialised in printing mode. [originally from svn r8852] --- diff --git a/unequal.c b/unequal.c index 7ea0349..57d8afc 100644 --- a/unequal.c +++ b/unequal.c @@ -1902,7 +1902,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize) FONT_VARIABLE, TILE_SIZE/2, ALIGN_VCENTRE | ALIGN_HCENTRE, ink, str); - if (ds->adjacent) + if (state->adjacent) draw_adjs(dr, ds, ox, oy, GRID(state, flags, x, y), ink); else draw_gts(dr, ds, ox, oy, GRID(state, flags, x, y), ink);