From ce6c7eb36a7205c2c25cc93eccd2e77f0763e0b3 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Sun, 12 Apr 2020 21:32:13 +0600 Subject: [PATCH] - add volatile flag to 'int quickSpool' --- src_rebuild/GAME/C/SPOOL.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_rebuild/GAME/C/SPOOL.C b/src_rebuild/GAME/C/SPOOL.C index 401f2c9d..f10e19fc 100644 --- a/src_rebuild/GAME/C/SPOOL.C +++ b/src_rebuild/GAME/C/SPOOL.C @@ -66,7 +66,7 @@ int spool_regioncounter; int spoolerror; // UNUSED int spool_regionpos; volatile int spoolactive; // volatile is required at least for PC -int quickSpool; +volatile int quickSpool; int models_ready; short specspooldata[3] = { 20, 10 }; @@ -152,7 +152,7 @@ int levelSpoolerPCFunc(void* data) printf("Running SPOOL thread...\n"); // HACK: delay a little bit - SDL_Delay(10); + SDL_Delay(20); g_spoolDoneFlag = false; g_isSectorDataRead = false;