Crusher Fixes (#2205)

Fixes the icons of the neighbouring piston-bases not updating if a linked piston base is destroyed
Fixed a few runtimes
This commit is contained in:
Werner
2017-05-13 11:35:54 +02:00
committed by skull132
parent f702f99f14
commit 0d1d0f6429
2 changed files with 44 additions and 19 deletions

View File

@@ -94,16 +94,19 @@
/datum/nano_module/program/crushercontrol/proc/airlock_open()
for(var/obj/machinery/door/airlock/arlk in airlocks)
arlk.unlock()
arlk.open()
arlk.lock()
for(var/thing in airlocks)
var/obj/machinery/door/airlock/arlk = thing
if (!arlk.cur_command)
// Not using do_command so that the command queuer works.
arlk.cur_command = "secure_open"
arlk.execute_current_command()
/datum/nano_module/program/crushercontrol/proc/airlock_close()
for(var/obj/machinery/door/airlock/arlk in airlocks)
arlk.unlock()
arlk.close()
arlk.lock()
for(var/thing in airlocks)
var/obj/machinery/door/airlock/arlk = thing
if (!arlk.cur_command)
arlk.cur_command = "secure_close"
arlk.execute_current_command()
/datum/nano_module/program/crushercontrol/proc/crush_start()
for(var/obj/machinery/crusher_base/pstn in pistons)