chiark / gitweb /
Stop the analysis pass in Loopy's redraw routine from being
authorSimon Tatham <anakin@pobox.com>
Sat, 19 Jan 2013 18:56:07 +0000 (18:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 19 Jan 2013 18:56:07 +0000 (18:56 +0000)
commite0f5e4926549e6c0715f7438ec6b2fd07e9be3c2
treefdd238daf752c5a08e9f099b5700c42318b35670
parent8a7dad6d2d3bca56b2473bed6b70e184cf7dced5
Stop the analysis pass in Loopy's redraw routine from being
conditionalised on !ds->started, so that we still do all the looping
over everything even if we know it's all going to be redrawn. This is
because deciding how much needs redrawing is not the only important
thing in those loops - they also set up arrays like ds->clue_error,
which tell the individual redraw functions _what_ to draw.

Fixes a bug in which, if you start a Loopy game and make moves causing
a clue to light up red for an error and then save your game, loading
the same save file at the start of a Loopy run would fail to highlight
the erroneous clue.

(This commit diff looks large, but actually it changes almost nothing
but whitespace.)

[originally from svn r9751]
loopy.c