Merge pull request #11440 from spasticVerbalizer/yesYouAreInSpace

Prevents securing emitters and field gens in space
This commit is contained in:
Cheridan
2015-08-29 10:42:30 -05:00
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -181,7 +181,8 @@
user << "<span class='warning'>Turn off \the [src] first!</span>"
return
switch(state)
if(0 && !isinspace())
if(0)
if(isinspace()) return
state = 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
user.visible_message("[user.name] secures [src.name] to the floor.", \
@@ -100,7 +100,8 @@ field_generator power level display
return
else if(istype(W, /obj/item/weapon/wrench))
switch(state)
if(0 && !isinspace())
if(0)
if(isinspace()) return
state = 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
user.visible_message("[user.name] secures [src.name] to the floor.", \