From 778f40e4697dd405c927792d8cf1c81ff9a53b26 Mon Sep 17 00:00:00 2001 From: Drieden Date: Sat, 23 Jun 2012 23:42:24 -0400 Subject: [PATCH] Prevented genetics from scanning headless people and permanently breaking the cloner. --- code/game/machinery/computer/cloning.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index d32933dec83..382ab89c367 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -185,7 +185,12 @@ if (src.scanner.occupant) if(scantemp == "Scanner unoccupied") scantemp = "" // Stupid check to remove the text - dat += "Scan - [src.scanner.occupant]
" + // 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 += "Scan - [src.scanner.occupant]
" + else + dat += "Error: Cannot locate brain for mental indexing. Unable to continue.
" else dat += "Scanner unoccupied"