mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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.
This commit is contained in:

committed by
Simon Tatham

parent
156b0c3e23
commit
f3f0f009ff
2
midend.c
2
midend.c
@ -547,8 +547,6 @@ void midend_restart_game(midend *me)
|
|||||||
{
|
{
|
||||||
game_state *s;
|
game_state *s;
|
||||||
|
|
||||||
midend_stop_anim(me);
|
|
||||||
|
|
||||||
assert(me->statepos >= 1);
|
assert(me->statepos >= 1);
|
||||||
if (me->statepos == 1)
|
if (me->statepos == 1)
|
||||||
return; /* no point doing anything at all! */
|
return; /* no point doing anything at all! */
|
||||||
|
Reference in New Issue
Block a user