Fix init_process not preventing processing

Prevents machines from running faster when set to both not init_process and not speed_process.

Changes mineral machine to init_process to fix potential issues caused by this.
This commit is contained in:
Darius
2022-12-16 16:25:45 -05:00
parent 7d0c3df2ad
commit bcae0e66ff
2 changed files with 6 additions and 5 deletions

View File

@@ -149,10 +149,11 @@ Class Procs:
circuit = new circuit(src) circuit = new circuit(src)
circuit.apply_default_parts(src) circuit.apply_default_parts(src)
if(!speed_process && init_process) if(init_process) // Required to prevent non-speed non-init machines from running
START_PROCESSING(SSmachines, src) if(speed_process)
else START_PROCESSING(SSfastprocess, src)
START_PROCESSING(SSfastprocess, src) else
START_PROCESSING(SSmachines, src)
RegisterSignal(src, COMSIG_ENTER_AREA, .proc/power_change) RegisterSignal(src, COMSIG_ENTER_AREA, .proc/power_change)
if (occupant_typecache) if (occupant_typecache)

View File

@@ -4,7 +4,7 @@
/obj/machinery/mineral /obj/machinery/mineral
speed_process = TRUE speed_process = TRUE
init_process = FALSE init_process = TRUE // Must be true after init_process fix
/// The current direction of `input_turf`, in relation to the machine. /// The current direction of `input_turf`, in relation to the machine.
var/input_dir = NORTH var/input_dir = NORTH
/// The current direction, in relation to the machine, that items will be output to. /// The current direction, in relation to the machine, that items will be output to.