mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user