minor fixes, compile but still bugged

This commit is contained in:
Letter N
2021-02-14 17:08:16 +08:00
parent b2c7b80cd2
commit 78ef87b012
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
var/list/cam_plane_masters
var/obj/screen/background/cam_background
interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_SET_MACHINE | INTERACT_MACHINE_REQUIRES_SIGHT
interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_SET_MACHINE //| INTERACT_MACHINE_REQUIRES_SIGHT
/obj/machinery/computer/security/Initialize()
. = ..()
+6 -3
View File
@@ -26,7 +26,8 @@
if(COOLDOWN_FINISHED(src, massdriver_countdown))
timing = FALSE
// alarm() sleeps, so we want to end processing first and can't rely on return PROCESS_KILL
end_processing()
// end_processing()
STOP_PROCESSING(SSmachines, src)
alarm()
/**
@@ -102,11 +103,13 @@
timing = !timing
if(timing)
COOLDOWN_START(src, massdriver_countdown, time SECONDS)
begin_processing()
// begin_processing()
START_PROCESSING(SSmachines, src)
else
time = COOLDOWN_TIMELEFT(src, massdriver_countdown) * 0.1
COOLDOWN_RESET(src, massdriver_countdown)
end_processing()
// end_processing()
STOP_PROCESSING(SSmachines, src)
return TRUE
if("input")
var/value = text2num(params["adjust"])