aboutsummaryrefslogtreecommitdiff
path: root/unfinished
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-13 21:51:49 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-13 21:52:26 +0000
commit53798c08d40efe9e0b1f0fca25f05fbdf660aca7 (patch)
treed8213f56a3c265676c407e3b205d681668bf145c /unfinished
parent5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a (diff)
downloadpuzzles-53798c08d40efe9e0b1f0fca25f05fbdf660aca7.zip
puzzles-53798c08d40efe9e0b1f0fca25f05fbdf660aca7.tar.gz
puzzles-53798c08d40efe9e0b1f0fca25f05fbdf660aca7.tar.bz2
puzzles-53798c08d40efe9e0b1f0fca25f05fbdf660aca7.tar.xz
Add a missing const in unfinished/sokoban.c.
I noticed this when I temporarily enabled compilation of all the unfinished puzzles while doing the bool trawl.
Diffstat (limited to 'unfinished')
-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;