fixes for potential runtimes.

This commit is contained in:
DJSnapshot
2014-06-23 06:17:48 -04:00
committed by ZomgPonies
parent 21a1f2eefe
commit e55208bc69
5 changed files with 15 additions and 8 deletions
@@ -41,6 +41,9 @@
return 0
interact()
if(!computer.cardslot)
computer.Crash(MISSING_PERIPHERAL)
return
usr.set_machine(src)
scan = computer.cardslot.reader
if(!interactable())
@@ -5,7 +5,7 @@
icon_state = "frame-sec"
/datum/file/program/prisoner
name = "Prisoner Management Comsole"
name = "Prisoner Management Console"
active_state = "explosive"
req_access = list(access_armory)
@@ -44,10 +44,14 @@
return 0
interact()
if(!computer.cardslot)
computer.Crash(MISSING_PERIPHERAL)
return
usr.set_machine(src)
scan = computer.cardslot.reader
if(!interactable())
return
return
if (computer.z > 6)
usr << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
return