for a past guess caused strangeness up to and including segfault,
thanks to bad bounds checking. Well spotted John Sullivan.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6040
cda61777-01e9-0310-a592-
d414129be87e
} else {
over_hint = 1;
}
} else {
over_hint = 1;
}
- } else if (x >= guess_ox &&
+ } else if (x >= guess_ox && x <= (guess_ox + GUESS_W) &&
y >= GUESS_OY && y < guess_oy) {
over_past_guess_y = (y - GUESS_OY) / PEGOFF;
over_past_guess_x = (x - guess_ox) / PEGOFF;
y >= GUESS_OY && y < guess_oy) {
over_past_guess_y = (y - GUESS_OY) / PEGOFF;
over_past_guess_x = (x - guess_ox) / PEGOFF;