chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0890a
)
And fix the error _I_ made in r7311. I should stop coding now,
author
Simon Tatham
<anakin@pobox.com>
Thu, 22 Feb 2007 19:05:10 +0000
(19:05 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Thu, 22 Feb 2007 19:05:10 +0000
(19:05 +0000)
because I'm clearly too sleepy to get it right.
[originally from svn r7312]
[r7311 ==
8c0890a331d93c9d12ef782601b9953463872fc6
]
galaxies.c
patch
|
blob
|
history
diff --git
a/galaxies.c
b/galaxies.c
index 58e33ebd138c1b5d12976d874a37eb8b6835776b..19d5624f1d7d1cd4162236b91b18625619e6c226 100644
(file)
--- a/
galaxies.c
+++ b/
galaxies.c
@@
-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*(int)(
FROMCOORD((float)x) + 0.5);
- py =
2*(int)(
FROMCOORD((float)y) + 0.5);
+ px =
(int)(2*
FROMCOORD((float)x) + 0.5);
+ py =
(int)(2*
FROMCOORD((float)y) + 0.5);
dot = NULL;