From: Jonas Kölker Date: Thu, 8 Oct 2015 08:43:51 +0000 (+0200) Subject: Don't stop animations when restarting an already restarted game. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f3f0f009fffc078c441e388ccf7d0bd95dffc621;p=sgt-puzzles.git Don't stop animations when restarting an already restarted game. Restarting a game that is already in the restarted state is meant to be a no-op. It stopped animations. Don't do this. Also, given that midmidend_restart_game called midend_stop_anim twice, the invocation we remove was redundant. --- diff --git a/midend.c b/midend.c index c520c13..6fc5409 100644 --- a/midend.c +++ b/midend.c @@ -547,8 +547,6 @@ void midend_restart_game(midend *me) { game_state *s; - midend_stop_anim(me); - assert(me->statepos >= 1); if (me->statepos == 1) return; /* no point doing anything at all! */