Make sure the Game_wind always gets freed when exiting the game screen, fixing flashing automap and framerate reduction after playing demos

This commit is contained in:
kreatordxx 2009-12-12 11:34:32 +00:00
parent f7b82723c4
commit 54e376ebbe
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
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
20091211
--------
arch/linux/ukali.c: Fixing possible string overflow while using KALI_PROCESS_NAME

View file

@ -1057,10 +1057,7 @@ int game_handler(window *wind, d_event *event, void *data)
}
if (Function_mode != FMODE_GAME)
{
if (window_close(wind))
longjmp(LeaveGame,0);
}
longjmp(LeaveGame,0);
return 1;
}
@ -1080,6 +1077,7 @@ void game()
event_process();
}
window_close(wind);
digi_stop_all();
if ( (Newdemo_state == ND_STATE_RECORDING) || (Newdemo_state == ND_STATE_PAUSED) )