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]
This commit is contained in:
Simon Tatham
2010-01-18 21:23:27 +00:00
parent 9f96c12e9f
commit f55dc67f43

View File

@ -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);