Merge pull request #5413 from VOREStation/upstream-merge-6253

[MIRROR] Fixes deconstructed wall frames blocking passage
This commit is contained in:
Novacat
2019-07-02 12:53:16 -04:00
committed by GitHub

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)