chiark / gitweb /
New rule: interpret_move() is passed a pointer to the game_drawstate
[sgt-puzzles.git] / range.c
diff --git a/range.c b/range.c
index 425259f01c8fd6e46b68165512dd0d3019ea4f62..43231d9683361b428a2572b6f7d2cbdf51b4fa1f 100644 (file)
--- a/range.c
+++ b/range.c
@@ -1248,7 +1248,7 @@ struct game_drawstate {
 #define COORD(x) ((x) * TILESIZE + BORDER)
 #define FROMCOORD(x) (((x) - BORDER) / TILESIZE)
 
-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)
 {
     enum {none, forwards, backwards, hint};