chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New rule: interpret_move() is passed a pointer to the game_drawstate
[sgt-puzzles.git]
/
sixteen.c
diff --git
a/sixteen.c
b/sixteen.c
index 8079facfcfc52ba3a441a87e07ad7a4d6e257c18..88c7ef49b682b8603a69a0e91f688274835d8c80 100644
(file)
--- a/
sixteen.c
+++ b/
sixteen.c
@@
-595,7
+595,7
@@
struct game_drawstate {
int cur_x, cur_y;
};
-static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
+static char *interpret_move(game_state *state, game_ui *ui,
const
game_drawstate *ds,
int x, int y, int button)
{
int cx = -1, cy = -1, dx, dy;