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 55f2419a09
commit dcc375c5dd
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
D2X-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

@ -1287,7 +1287,6 @@ void game()
event_process();
}
window_close(Game_wind);
digi_stop_all();
if ( (Newdemo_state == ND_STATE_RECORDING) || (Newdemo_state == ND_STATE_PAUSED) )
@ -1302,6 +1301,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