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
a87ae8a672
commit
55f2419a09
|
@ -1,5 +1,9 @@
|
||||||
D2X-Rebirth Changelog
|
D2X-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
|
||||||
|
|
|
@ -1267,10 +1267,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;
|
||||||
}
|
}
|
||||||
|
@ -1290,6 +1287,7 @@ void game()
|
||||||
event_process();
|
event_process();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window_close(Game_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