diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-09-13 18:34:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-09-13 18:34:12 +0000 |
| commit | a5891971c1450ad8fdb985eea09bcbd8bf9f25a5 (patch) | |
| tree | 78ad647ea8b6c05e64fa97413f56f3d80758deb6 | |
| parent | c389f623f66fe5296f7ef5c66d88884607b82cff (diff) | |
| download | puzzles-a5891971c1450ad8fdb985eea09bcbd8bf9f25a5.zip puzzles-a5891971c1450ad8fdb985eea09bcbd8bf9f25a5.tar.gz puzzles-a5891971c1450ad8fdb985eea09bcbd8bf9f25a5.tar.bz2 puzzles-a5891971c1450ad8fdb985eea09bcbd8bf9f25a5.tar.xz | |
Patch from Mike: fix an array indexing error in the clue
highlighting, and adjust the presets.
[originally from svn r6303]
| -rw-r--r-- | loopy.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -430,10 +430,12 @@ static const struct { { "7x7 Easy", { 7, 7, DIFF_EASY, 0 } }, { "7x7 Normal", { 7, 7, DIFF_NORMAL, 0 } }, { "10x10 Easy", { 10, 10, DIFF_EASY, 0 } }, -#ifndef SLOW_SYSTEM { "10x10 Normal", { 10, 10, DIFF_NORMAL, 0 } }, +#ifndef SLOW_SYSTEM { "15x15 Easy", { 15, 15, DIFF_EASY, 0 } }, - { "30x20 Easy", { 30, 20, DIFF_EASY, 0 } } + { "15x15 Normal", { 15, 15, DIFF_NORMAL, 0 } }, + { "30x20 Easy", { 30, 20, DIFF_EASY, 0 } }, + { "30x20 Normal", { 30, 20, DIFF_NORMAL, 0 } } #endif }; @@ -2591,7 +2593,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate, clue_mistake = (square_order(state, i, j, LINE_YES) > n || square_order(state, i, j, LINE_NO ) > (4-n)); - if (clue_mistake != ds->clue_error[i * w + j]) { + if (clue_mistake != ds->clue_error[j * w + i]) { draw_rect(dr, BORDER + i * TILE_SIZE + CROSS_SIZE, BORDER + j * TILE_SIZE + CROSS_SIZE, @@ -2606,7 +2608,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate, draw_update(dr, i * TILE_SIZE + BORDER, j * TILE_SIZE + BORDER, TILE_SIZE, TILE_SIZE); - ds->clue_error[i * w + j] = clue_mistake; + ds->clue_error[j * w + i] = clue_mistake; } } } |