Make sure the Game_wind only gets freed once when escaping demo playback

This commit is contained in:
kreatordxx 2009-12-14 13:27:05 +00:00
parent 54e376ebbe
commit dad42489f7
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20091213
--------
main/game.c: Make sure the Game_wind only gets freed once when escaping demo playback
20091212
--------
main/game.c: Make sure the Game_wind always gets freed when exiting the game screen, fixing flashing automap and framerate reduction after playing demos

View file

@ -1077,7 +1077,6 @@ void game()
event_process();
}
window_close(wind);
digi_stop_all();
if ( (Newdemo_state == ND_STATE_RECORDING) || (Newdemo_state == ND_STATE_PAUSED) )
@ -1092,6 +1091,8 @@ void game()
clear_warn_func(game_show_warning); //don't use this func anymore
game_disable_cheats();
window_close(Game_wind);
}
//called at the end of the program