Skip to content

Commit d9874c1

Browse files
committed
pixels indexing
1 parent 48606ac commit d9874c1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

PretextView.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ global_variable
225225
u08
226226
Pending_Clear_Cache = 0;
227227

228+
global_variable
229+
u08
230+
Skip_SaveState_On_Reload = 0;
231+
228232
global_variable
229233
u64
230234
Active_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

0 commit comments

Comments
 (0)