fixes for potential runtimes.

This commit is contained in:
DJSnapshot
2014-06-22 23:42:47 -07:00
parent aa27bdc64c
commit 2025e84b67
5 changed files with 15 additions and 8 deletions

View File

@@ -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())

View File

@@ -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)

View File

@@ -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