Solve animation (currently only in Untangle) was failing to set
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Jul 2005 12:07:56 +0000 (12:07 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Jul 2005 12:07:56 +0000 (12:07 +0000)
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.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6127 cda61777-01e9-0310-a592-d414129be87e

midend.c

index 4c28ec8..f7d1aca 100644 (file)
--- 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);