diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-09-18 07:43:18 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-09-18 07:43:18 +0000 |
| commit | 295fb9fd83512432404cd701c8b09bae4e627e20 (patch) | |
| tree | 98bba232082fdf2f4ccf0d684490c256891e4db2 /signpost.c | |
| parent | 7f8919952ff61e69f264082f06d4b2698cc1dedd (diff) | |
| download | puzzles-295fb9fd83512432404cd701c8b09bae4e627e20.zip puzzles-295fb9fd83512432404cd701c8b09bae4e627e20.tar.gz puzzles-295fb9fd83512432404cd701c8b09bae4e627e20.tar.bz2 puzzles-295fb9fd83512432404cd701c8b09bae4e627e20.tar.xz | |
When we run out of background colours for chains and wrap back to the
beginning, we should wrap back to COL_B0+1 rather than COL_B0 itself,
so as not to reuse white. White should be special, and always indicate
a properly numbered square.
[originally from svn r9305]
Diffstat (limited to 'signpost.c')
| -rw-r--r-- | signpost.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1812,8 +1812,8 @@ static int num2col(game_drawstate *ds, int num) { int set = num / (ds->n+1); - if (num <= 0) return COL_B0; - return COL_B0 + (set % 16); + if (num <= 0 || set == 0) return COL_B0; + return COL_B0 + 1 + ((set-1) % 15); } #define ARROW_HALFSZ (7 * TILE_SIZE / 32) |