Make sure the Game_wind only gets freed once when escaping demo playback
This commit is contained in:
parent
54e376ebbe
commit
dad42489f7
|
@ -1,5 +1,9 @@
|
||||||
D1X-Rebirth Changelog
|
D1X-Rebirth Changelog
|
||||||
|
|
||||||
|
20091213
|
||||||
|
--------
|
||||||
|
main/game.c: Make sure the Game_wind only gets freed once when escaping demo playback
|
||||||
|
|
||||||
20091212
|
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
|
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
|
||||||
|
|
|
@ -1077,7 +1077,6 @@ void game()
|
||||||
event_process();
|
event_process();
|
||||||
}
|
}
|
||||||
|
|
||||||
window_close(wind);
|
|
||||||
digi_stop_all();
|
digi_stop_all();
|
||||||
|
|
||||||
if ( (Newdemo_state == ND_STATE_RECORDING) || (Newdemo_state == ND_STATE_PAUSED) )
|
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
|
clear_warn_func(game_show_warning); //don't use this func anymore
|
||||||
game_disable_cheats();
|
game_disable_cheats();
|
||||||
|
|
||||||
|
window_close(Game_wind);
|
||||||
}
|
}
|
||||||
|
|
||||||
//called at the end of the program
|
//called at the end of the program
|
||||||
|
|
Loading…
Reference in a new issue