Makes clicking on airlocks work again.

This commit is contained in:
Neerti
2016-07-09 22:37:51 -04:00
parent 108a8743f5
commit 06b97aa990

View File

@@ -727,7 +727,7 @@ About the new airlock wires panel:
update_icon()
return 1
/obj/machinery/door/airlock/attackby(obj/C as obj, mob/user as mob)
/obj/machinery/door/airlock/attackby(C as obj, mob/user as mob)
//world << text("airlock attackby src [] obj [] mob []", src, C, user)
if(!istype(usr, /mob/living/silicon))
if(src.isElectrified())
@@ -737,6 +737,9 @@ About the new airlock wires panel:
return
src.add_fingerprint(user)
if(istype(C, /mob/living))
..()
return
if(!repairing && (istype(C, /obj/item/weapon/weldingtool) && !( src.operating > 0 ) && src.density))
var/obj/item/weapon/weldingtool/W = C
if(W.remove_fuel(0,user))
@@ -810,7 +813,9 @@ About the new airlock wires panel:
spawn(0) close(1)
// Check if we're using a crowbar or armblade, and if the airlock's unpowered for whatever reason (off, broken, etc).
else if((C.pry == 1) && !arePowerSystemsOn())
else if(istype(C, /obj/item/weapon))
var/obj/item/weapon/W = C
if((W.pry == 1) && !arePowerSystemsOn())
if(locked)
user << "<span class='notice'>The airlock's bolts prevent it from being forced.</span>"
else if( !welded && !operating )