aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unfinished/sokoban.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unfinished/sokoban.c b/unfinished/sokoban.c
index 44332fd..7d42a12 100644
--- a/unfinished/sokoban.c
+++ b/unfinished/sokoban.c
@@ -957,7 +957,7 @@ struct game_drawstate {
* subfunction. move_type() returns -1 for an illegal move, 0 for a
* movement, and 1 for a push.
*/
-int move_type(game_state *state, int dx, int dy)
+int move_type(const game_state *state, int dx, int dy)
{
int w = state->p.w, h = state->p.h;
int px = state->px, py = state->py;