diff options
| author | Simon Tatham <anakin@pobox.com> | 2007-02-22 18:59:15 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2007-02-22 18:59:15 +0000 |
| commit | 8c0890a331d93c9d12ef782601b9953463872fc6 (patch) | |
| tree | 718c1d1ee2a760fb16667541a61fa0baf01d20d9 | |
| parent | a428c5899de86897fe4e92fa6585b3c3908ce2ad (diff) | |
| download | puzzles-8c0890a331d93c9d12ef782601b9953463872fc6.zip puzzles-8c0890a331d93c9d12ef782601b9953463872fc6.tar.gz puzzles-8c0890a331d93c9d12ef782601b9953463872fc6.tar.bz2 puzzles-8c0890a331d93c9d12ef782601b9953463872fc6.tar.xz | |
Part of r7310 completely changed the careful semantics of my
coordinate-rounding, causing picking up arrows from a dot anywhere
other than at the centre of a square to break.
[originally from svn r7311]
[r7310 == a428c5899de86897fe4e92fa6585b3c3908ce2ad]
| -rw-r--r-- | galaxies.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2225,8 +2225,8 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, } 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); dot = NULL; |