From 603768f0e55184ee8ff2172681d49a898abfa33d Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 20 Apr 2021 18:14:57 -0400 Subject: [PATCH] Changes blueprints to use ChangeArea This should fix a bug where using blueprints to set a livable area on turfs without dynamic lighting (such as space) prevents dynamic lighting from properly initializing on turfs in that area. --- code/game/objects/items/blueprints.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm index 1638c81295..cbab1e63cd 100644 --- a/code/game/objects/items/blueprints.dm +++ b/code/game/objects/items/blueprints.dm @@ -147,10 +147,8 @@ move an amendment to the drawing.

/obj/item/blueprints/proc/move_turfs_to_area(var/list/turf/turfs, var/area/A) - A.contents.Add(turfs) - //oldarea.contents.Remove(usr.loc) // not needed - //T.loc = A //error: cannot change constant value - + for(var/T in turfs) + ChangeArea(T, A) /obj/item/blueprints/proc/edit_area() var/area/A = get_area()