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:
parent
f7b82723c4
commit
54e376ebbe
|
@ -1,5 +1,9 @@
|
||||||
D1X-Rebirth Changelog
|
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
|
20091211
|
||||||
--------
|
--------
|
||||||
arch/linux/ukali.c: Fixing possible string overflow while using KALI_PROCESS_NAME
|
arch/linux/ukali.c: Fixing possible string overflow while using KALI_PROCESS_NAME
|
||||||
|
|
|
@ -1057,10 +1057,7 @@ int game_handler(window *wind, d_event *event, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Function_mode != FMODE_GAME)
|
if (Function_mode != FMODE_GAME)
|
||||||
{
|
longjmp(LeaveGame,0);
|
||||||
if (window_close(wind))
|
|
||||||
longjmp(LeaveGame,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1080,6 +1077,7 @@ 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) )
|
||||||
|
|
Loading…
Reference in a new issue