diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-11-28 19:33:40 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-11-28 19:33:40 +0000 |
| commit | 4443016a825e6ba089781b43de14aaa8034f1cc2 (patch) | |
| tree | ecc2d4c557a484a602fc584eb4f893c3402bbb16 | |
| parent | f514a1ea909bf182e8646cc9ae8c62288bf02464 (diff) | |
| download | puzzles-4443016a825e6ba089781b43de14aaa8034f1cc2.zip puzzles-4443016a825e6ba089781b43de14aaa8034f1cc2.tar.gz puzzles-4443016a825e6ba089781b43de14aaa8034f1cc2.tar.bz2 puzzles-4443016a825e6ba089781b43de14aaa8034f1cc2.tar.xz | |
Fix parenthesis problem in Light Up solver. Should fix Debian bug
#505359.
[originally from svn r8342]
| -rw-r--r-- | lightup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1016,9 +1016,9 @@ static void try_rule_out(game_state *state, int x, int y, get_surrounds(state, x, y, &s); for (i = 0; i < s.npoints; i++) { - if (!GRID(state,flags,s.points[i].x,s.points[i].y) & F_NUMBERED) + if (!(GRID(state,flags,s.points[i].x,s.points[i].y) & F_NUMBERED)) continue; - /* we have an adjacent clue square; find /it's/ surrounds + /* we have an adjacent clue square; find /its/ surrounds * and count the remaining lights it needs. */ get_surrounds(state,s.points[i].x,s.points[i].y,&ss); curr_lights = 0; |