mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-23 12:32:26 +00:00
Prevent config being saved every frame
fixes the occasional freezing that some people experience
This commit is contained in:
parent
6e119d989a
commit
6977676656
1 changed files with 5 additions and 1 deletions
|
@ -1371,7 +1371,7 @@ void Com_Frame( void ) {
|
||||||
TBXR_FrameSetup();
|
TBXR_FrameSetup();
|
||||||
|
|
||||||
// write config file if anything changed
|
// write config file if anything changed
|
||||||
Com_WriteConfiguration();
|
//Com_WriteConfiguration();
|
||||||
|
|
||||||
//
|
//
|
||||||
// main event loop
|
// main event loop
|
||||||
|
@ -1571,6 +1571,10 @@ Com_Shutdown
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void Com_Shutdown (void) {
|
void Com_Shutdown (void) {
|
||||||
|
|
||||||
|
// write config file if anything changed
|
||||||
|
Com_WriteConfiguration();
|
||||||
|
|
||||||
CM_ClearMap();
|
CM_ClearMap();
|
||||||
|
|
||||||
if (logfile) {
|
if (logfile) {
|
||||||
|
|
Loading…
Reference in a new issue