chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc2c00
)
We were forgetting to count the final move.
author
Simon Tatham
<anakin@pobox.com>
Fri, 30 Apr 2004 10:14:55 +0000
(10:14 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Fri, 30 Apr 2004 10:14:55 +0000
(10:14 +0000)
[originally from svn r4176]
cube.c
patch
|
blob
|
history
diff --git
a/cube.c
b/cube.c
index a0abf6d21785bbc8e4a3cd467721ef67f5ed0dd8..9cb359ee2b36409241bd4b146c3d646b71e6ae97 100644
(file)
--- 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;
}