diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-30 10:14:55 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-30 10:14:55 +0000 |
| commit | 17f261018a9721e677cb43c74471f17ac9e3ac6e (patch) | |
| tree | b54fa978a2556d2e623c25071cf79367271cd5fa /cube.c | |
| parent | 3cc2c00e69c888c6cd797e0ad0663c0ba1d7ce0c (diff) | |
| download | puzzles-17f261018a9721e677cb43c74471f17ac9e3ac6e.zip puzzles-17f261018a9721e677cb43c74471f17ac9e3ac6e.tar.gz puzzles-17f261018a9721e677cb43c74471f17ac9e3ac6e.tar.bz2 puzzles-17f261018a9721e677cb43c74471f17ac9e3ac6e.tar.xz | |
We were forgetting to count the final move.
[originally from svn r4176]
Diffstat (limited to 'cube.c')
| -rw-r--r-- | cube.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |