summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2769dce)
coordinate-rounding, causing picking up arrows from a dot anywhere
other than at the centre of a square to break.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7311
cda61777-01e9-0310-a592-
d414129be87e
} else if (button == RIGHT_BUTTON) {
int px1, py1;
} else if (button == RIGHT_BUTTON) {
int px1, py1;
- px = 2*(FROMCOORD( (int)((float)x + 0.5) ));
- py = 2*(FROMCOORD( (int)((float)y + 0.5) ));
+ px = 2*(int)(FROMCOORD((float)x) + 0.5);
+ py = 2*(int)(FROMCOORD((float)y) + 0.5);