shithub: puzzles

Download patch

ref: bf81e9c1fac2dc891d15d107a56db0c9b7482c20
parent: af010d7283c4b9abbd610c93d9bc49d69e1eccfe
author: Jonas Kölker <jonaskoelker@yahoo.com>
date: Thu Oct 8 06:54:47 EDT 2015

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.

--- a/midend.c
+++ b/midend.c
@@ -454,6 +454,7 @@
 					       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);