aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-22 12:07:56 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-22 12:07:56 +0000
commit0a798c7484786abcd4b187f94b3734823ca1204e (patch)
tree6dce6419f6e5cbe70f649e532a58e384f4860bf3
parentbed038e17f647becf7ab418c721cb0d2624017e8 (diff)
downloadpuzzles-0a798c7484786abcd4b187f94b3734823ca1204e.zip
puzzles-0a798c7484786abcd4b187f94b3734823ca1204e.tar.gz
puzzles-0a798c7484786abcd4b187f94b3734823ca1204e.tar.bz2
puzzles-0a798c7484786abcd4b187f94b3734823ca1204e.tar.xz
Solve animation (currently only in Untangle) was failing to set
me->anim_pos to zero, meaning that if it happened immediately after a completion flash then anim_pos would start off half way through its run. [originally from svn r6127]
-rw-r--r--midend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/midend.c b/midend.c
index 4c28ec8..f7d1aca 100644
--- a/midend.c
+++ b/midend.c
@@ -1125,6 +1125,7 @@ char *midend_solve(midend_data *me)
me->ourgame->anim_length(me->states[me->statepos-2].state,
me->states[me->statepos-1].state,
+1, me->ui);
+ me->anim_pos = 0.0;
} else {
me->anim_time = 0.0;
midend_finish_move(me);