X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/b8c364866a1d025e7b7cd9c3d89844b5818d06ef..ccd4e210f26dbe842ef9417e0df8c0a06f5c822f:/cube.c diff --git a/cube.c b/cube.c index a0abf6d..9cb359e 100644 --- a/cube.c +++ b/cube.c @@ -1046,6 +1046,8 @@ game_state *make_move(game_state *from, int x, int y, int button) ret->facecolours = newcolours; } + ret->movecount++; + /* * And finally, swap the colour between the bottom face of the * polyhedron and the face we've just landed on. @@ -1097,7 +1099,6 @@ game_state *make_move(game_state *from, int x, int y, int button) ret->sgkey[1] = skey[1]; ret->previous = from->current; ret->angle = angle; - ret->movecount++; return ret; }