From a9317230c33f94b2255bcc3aa8368a28bd1640d8 Mon Sep 17 00:00:00 2001 From: MINIMAN10000 Date: Fri, 23 Mar 2018 19:14:01 -0700 Subject: [PATCH] Allows player to place floors by clicking on lattice instead of clicking between the lattice --- code/game/objects/items/weapons/RCD.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index cc905783223..31887b07ded 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -187,16 +187,16 @@ RCD if(!proximity) return if(istype(A,/area/shuttle)||istype(A,/turf/space/transit)) return 0 - if(!(istype(A, /turf) || istype(A, /obj/machinery/door/airlock) || istype(A, /obj/structure/grille) || istype(A, /obj/structure/window))) + if(!(istype(A, /turf) || istype(A, /obj/machinery/door/airlock) || istype(A, /obj/structure/grille) || istype(A, /obj/structure/window) || istype(A, /obj/structure/lattice))) return 0 switch(mode) if(1) - if(istype(A, /turf/space)) + if(istype(A, /turf/space) || istype(A, /obj/structure/lattice)) if(useResource(1, user)) to_chat(user, "Building Floor...") activate() - var/turf/AT = A + var/turf/AT = get_turf(A) AT.ChangeTurf(/turf/simulated/floor/plating) return 1 return 0