X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/ccd4e210f26dbe842ef9417e0df8c0a06f5c822f..d108c3429e902a82bdb703ba6f36df549782bba4:/fifteen.c diff --git a/fifteen.c b/fifteen.c index b3285e7..338bdfb 100644 --- a/fifteen.c +++ b/fifteen.c @@ -554,6 +554,13 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, { char statusbuf[256]; + /* + * Don't show the new status until we're also showing the + * new _state_ - after the game animation is complete. + */ + if (oldstate) + state = oldstate; + sprintf(statusbuf, "%sMoves: %d", (state->completed ? "COMPLETED! " : ""), (state->completed ? state->completed : state->movecount));