Merge pull request #6253 from Heroman3003/invisible-wall-fix

Fixes deconstructed wall frames blocking passage
This commit is contained in:
Anewbe
2019-07-02 07:27:47 -05:00
committed by VirgoBot
parent 969906eab2
commit af61db3c77

View File

@@ -415,11 +415,15 @@ Class Procs:
var/obj/item/weapon/circuitboard/M = circuit
A.circuit = M
A.anchored = 1
A.density = 1
A.frame_type = M.board_type
if(A.frame_type.circuit)
A.need_circuit = 0
if(A.frame_type.frame_class == FRAME_CLASS_ALARM || A.frame_type.frame_class == FRAME_CLASS_DISPLAY)
A.density = 0
else
A.density = 1
if(A.frame_type.frame_class == FRAME_CLASS_MACHINE)
for(var/obj/D in component_parts)
D.forceMove(src.loc)