ref: 53798c08d40efe9e0b1f0fca25f05fbdf660aca7
parent: 5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a
author: Simon Tatham <anakin@pobox.com>
date: Tue Nov 13 16:51:49 EST 2018
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.
--- a/unfinished/sokoban.c
+++ b/unfinished/sokoban.c
@@ -957,7 +957,7 @@
* 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;