Fixes Lattice Building (#263)

* allows construction of lattices again

https://github.com/tgstation/tgstation/pull/24674

* removes stray brig shutter from engineering windows
This commit is contained in:
TalkingCactus
2017-03-05 06:51:18 -05:00
committed by GitHub
parent 89a87f6ee5
commit 3a1d69cc63
2 changed files with 2 additions and 6 deletions
@@ -58970,10 +58970,6 @@
icon_state = "0-8"
},
/obj/structure/grille,
/obj/machinery/door/poddoor/preopen{
id = "Secure Gate";
name = "brig shutters"
},
/obj/structure/window/reinforced/fulltile,
/turf/open/floor/plating,
/area/engine/engineering)
+2 -2
View File
@@ -60,10 +60,10 @@
/turf/open/space/attack_paw(mob/user)
return src.attack_hand(user)
/turf/open/space/attackby(obj/item/C, mob/user, area_restriction)
/turf/open/space/attackby(obj/item/C, mob/user, area/area_restriction)
..()
if(istype(C, /obj/item/stack/rods))
if(area_restriction && !istype(get_area(src), area_restriction))
if(istype(area_restriction) && !istype(get_area(src), area_restriction))
return
var/obj/item/stack/rods/R = C
var/obj/structure/lattice/L = locate(/obj/structure/lattice, src)