File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,6 +225,10 @@ global_variable
225225u08
226226Pending_Clear_Cache = 0;
227227
228+ global_variable
229+ u08
230+ Skip_SaveState_On_Reload = 0;
231+
228232global_variable
229233u64
230234Active_Map_Header_Hash = 0;
@@ -13612,6 +13616,7 @@ ProcessPendingClearCache(void)
1361213616
1361313617 if (Map_File_Path[0])
1361413618 {
13619+ Skip_SaveState_On_Reload = 1;
1361513620 Loading = 1;
1361613621 Redisplay = 1;
1361713622 printf("[PretextView] Clear cache: reloading %s\n", Map_File_Path);
@@ -14773,7 +14778,7 @@ MainArgs
1477314778
1477414779 glfwSwapBuffers(window);
1477514780 Redisplay = 0;
14776- if (currFileName)
14781+ if (currFileName && !Skip_SaveState_On_Reload )
1477714782 {
1477814783 SetErrorContext(error_context_state_management, "SaveState");
1477914784 UpdateCrashReportSnapshot();
@@ -14798,7 +14803,7 @@ MainArgs
1479814803
1479914804 if (Loading)
1480014805 {
14801- if (currFileName)
14806+ if (currFileName && !Skip_SaveState_On_Reload )
1480214807 {
1480314808 SetErrorContext(error_context_state_management, "SaveState");
1480414809 UpdateCrashReportSnapshot();
@@ -14848,6 +14853,7 @@ MainArgs
1484814853 }
1484914854 glfwPollEvents();
1485014855 Loading = 0;
14856+ Skip_SaveState_On_Reload = 0;
1485114857 Redisplay = 1;
1485214858 }
1485314859
You can’t perform that action at this time.
0 commit comments