- add volatile flag to 'int quickSpool'

This commit is contained in:
Ilya Shurumov 2020-04-12 21:32:13 +06:00
parent 4aa2bd6f3c
commit ce6c7eb36a

View File

@ -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;