[aisleriot] card-monkey: Make a new move when reverting the game state.
- From: Vincent Povirk <vpovirk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] card-monkey: Make a new move when reverting the game state.
- Date: Mon, 6 Aug 2012 20:56:29 +0000 (UTC)
commit d2af576bd54a4bfd985934525b5276e44f15c3e7
Author: Vincent Povirk <madewokherd gmail com>
Date: Mon Aug 6 15:45:58 2012 -0500
card-monkey: Make a new move when reverting the game state.
This more closely reflects how undo/redo works.
games/card-monkey.scm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/games/card-monkey.scm b/games/card-monkey.scm
index 6fae922..3d5dc48 100755
--- a/games/card-monkey.scm
+++ b/games/card-monkey.scm
@@ -193,7 +193,8 @@
(define (_changed-game-state?)
(not (equal? _state (_get-game-state))))
(define (_revert-game-state)
- (eval-move _state))
+ (eval-move _state)
+ (_store-game-state))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]