Fixed machinery not being processed.
This commit is contained in:
@@ -150,6 +150,7 @@
|
|||||||
#define SSAIR_EQUALIZE 8
|
#define SSAIR_EQUALIZE 8
|
||||||
#define SSAIR_ACTIVETURFS 9
|
#define SSAIR_ACTIVETURFS 9
|
||||||
#define SSAIR_TURF_POST_PROCESS 10
|
#define SSAIR_TURF_POST_PROCESS 10
|
||||||
|
#define SSAIR_FINALIZE_TURFS 11
|
||||||
|
|
||||||
// |= on overlays is not actually guaranteed to not add same appearances but we're optimistically using it anyway.
|
// |= on overlays is not actually guaranteed to not add same appearances but we're optimistically using it anyway.
|
||||||
#define COMPILE_OVERLAYS(A)\
|
#define COMPILE_OVERLAYS(A)\
|
||||||
|
|||||||
@@ -114,12 +114,15 @@ SUBSYSTEM_DEF(air)
|
|||||||
if(state != SS_RUNNING)
|
if(state != SS_RUNNING)
|
||||||
return
|
return
|
||||||
resumed = 0
|
resumed = 0
|
||||||
currentpart = SSAIR_ATMOSMACHINERY
|
currentpart = SSAIR_FINALIZE_TURFS
|
||||||
|
if(currentpart == SSAIR_FINALIZE_TURFS)
|
||||||
if(currentpart == SSAIR_ATMOSMACHINERY)
|
|
||||||
if(finish_turf_processing(MC_TICK_REMAINING_MS))
|
if(finish_turf_processing(MC_TICK_REMAINING_MS))
|
||||||
pause()
|
pause()
|
||||||
|
if(state != SS_RUNNING)
|
||||||
return
|
return
|
||||||
|
resumed = 0
|
||||||
|
currentpart = SSAIR_ATMOSMACHINERY
|
||||||
|
if(currentpart == SSAIR_ATMOSMACHINERY)
|
||||||
timer = TICK_USAGE_REAL
|
timer = TICK_USAGE_REAL
|
||||||
process_atmos_machinery(resumed)
|
process_atmos_machinery(resumed)
|
||||||
cost_atmos_machinery = MC_AVERAGE(cost_atmos_machinery, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))
|
cost_atmos_machinery = MC_AVERAGE(cost_atmos_machinery, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))
|
||||||
|
|||||||
Reference in New Issue
Block a user