diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-05-12 18:54:16 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-05-12 18:54:16 +0000 |
| commit | ba076fbdb26149d39e076e161ace330149e71b30 (patch) | |
| tree | fc73a227bca14ec5420769fc8fbdb9ea167d6ed6 | |
| parent | 3c2a32014314d9b89616b2d6a686a19182cd5284 (diff) | |
| download | puzzles-ba076fbdb26149d39e076e161ace330149e71b30.zip puzzles-ba076fbdb26149d39e076e161ace330149e71b30.tar.gz puzzles-ba076fbdb26149d39e076e161ace330149e71b30.tar.bz2 puzzles-ba076fbdb26149d39e076e161ace330149e71b30.tar.xz | |
Fix `visible' calculation (again).
[originally from svn r4223]
| -rw-r--r-- | rect.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1306,12 +1306,12 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, if (HRANGE(state,x,y)) c |= index(state,hedge,x,y); - if (HRANGE(state,x+1,y)) - c |= index(state,hedge,x+1,y) << 2; + if (HRANGE(state,x,y+1)) + c |= index(state,hedge,x,y+1) << 2; if (VRANGE(state,x,y)) c |= index(state,vedge,x,y) << 4; - if (VRANGE(state,x,y+1)) - c |= index(state,vedge,x,y+1) << 6; + if (VRANGE(state,x+1,y)) + c |= index(state,vedge,x+1,y) << 6; c |= index(state,corners,x,y) << 8; if (x+1 < state->w) c |= index(state,corners,x+1,y) << 10; |