Prevented genetics from scanning headless people and permanently breaking the cloner.

This commit is contained in:
Drieden
2012-06-23 23:42:24 -04:00
parent 5ce9c23312
commit 778f40e469
+6 -1
View File
@@ -185,7 +185,12 @@
if (src.scanner.occupant)
if(scantemp == "Scanner unoccupied") scantemp = "" // Stupid check to remove the text
dat += "<a href='byond://?src=\ref[src];scan=1'>Scan - [src.scanner.occupant]</a><br>"
// Make sure we can't scan a headless person. It breaks the cloner permanently.
var/datum/organ/external/temp = organs["head"]
if(temp && !(temp.status & DESTROYED))
dat += "<a href='byond://?src=\ref[src];scan=1'>Scan - [src.scanner.occupant]</a><br>"
else
dat += "Error: Cannot locate brain for mental indexing. Unable to continue.<br>"
else
dat += "Scanner unoccupied"