mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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.
This commit is contained in:
@ -957,7 +957,7 @@ struct game_drawstate {
|
|||||||
* subfunction. move_type() returns -1 for an illegal move, 0 for a
|
* subfunction. move_type() returns -1 for an illegal move, 0 for a
|
||||||
* movement, and 1 for a push.
|
* 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 w = state->p.w, h = state->p.h;
|
||||||
int px = state->px, py = state->py;
|
int px = state->px, py = state->py;
|
||||||
|
Reference in New Issue
Block a user