aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
authorJonas Kölker <jonaskoelker@yahoo.com>2015-10-08 10:43:51 +0200
committerSimon Tatham <anakin@pobox.com>2015-10-14 20:29:32 +0100
commitf3f0f009fffc078c441e388ccf7d0bd95dffc621 (patch)
tree02c99b65e665d1c92f35e247ce745bd8fc807d97 /midend.c
parent156b0c3e23acc3aee3f8a4f7d94132ba227de751 (diff)
downloadpuzzles-f3f0f009fffc078c441e388ccf7d0bd95dffc621.zip
puzzles-f3f0f009fffc078c441e388ccf7d0bd95dffc621.tar.gz
puzzles-f3f0f009fffc078c441e388ccf7d0bd95dffc621.tar.bz2
puzzles-f3f0f009fffc078c441e388ccf7d0bd95dffc621.tar.xz
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.
Diffstat (limited to 'midend.c')
-rw-r--r--midend.c2
1 files changed, 0 insertions, 2 deletions
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! */