From 1277ff5d43604ae983f5e977fca0658288ea1fdc Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 18 Jan 2010 21:23:27 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8852 cda61777-01e9-0310-a592-d414129be87e --- unequal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0