From: Jonas Kölker Date: Thu, 8 Oct 2015 08:54:47 +0000 (+0200) Subject: Reset midend animation counters on starting a new game. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=bf81e9c1fac2dc891d15d107a56db0c9b7482c20;p=sgt-puzzles.git Reset midend animation counters on starting a new game. This is already done in midend_restart_game via midend_finish_move. If it's good enough for restarting a game, it ought to also be good enough for starting new games. --- diff --git a/midend.c b/midend.c index 3165df2..c8ab76c 100644 --- a/midend.c +++ b/midend.c @@ -454,6 +454,7 @@ void midend_new_game(midend *me) me->states[0].state); midend_size_new_drawstate(me); me->elapsed = 0.0F; + me->anim_pos = me->anim_time = 0.0F; if (me->ui) me->ourgame->free_ui(me->ui); me->ui = me->ourgame->new_ui(me->states[0].state);