Keep the status bar in better sync with the game display.

[originally from svn r4177]
This commit is contained in:
Simon Tatham
2004-04-30 10:17:22 +00:00
parent 17f261018a
commit a3c5409af2
2 changed files with 14 additions and 0 deletions

View File

@ -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));