mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
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:
@@ -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)
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user