Stop the analysis pass in Loopy's redraw routine from being master
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 Jan 2013 18:56:07 +0000 (18:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 Jan 2013 18:56:07 +0000 (18:56 +0000)
commite1d29f662ec00b6a9f5ded16d4f470ab85c66f94
treefdd238daf752c5a08e9f099b5700c42318b35670
parente1a7869e0eff2a80f58c3c77c4ab072b0df18118
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.)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9751 cda61777-01e9-0310-a592-d414129be87e
loopy.c