Fixes lighting.

Fixes lighting bug. Will apply to buildmode as well.
This commit is contained in:
C.L
2022-09-30 23:00:15 -04:00
parent 77434d2297
commit b5a51abd16
+8 -1
View File
@@ -393,9 +393,10 @@
else
newA = area_choice
for(var/i in 1 to length(turfs))
for(var/i in 1 to length(turfs)) //Fix lighting. Praise the lord.
var/turf/thing = turfs[i]
newA.contents += thing
thing.change_area(oldA, newA)
set_area_machinery(newA, newA.name, oldA.name)// Change the name and area defines of all the machinery to the correct area.
@@ -490,6 +491,12 @@
newA.setup(str)
else
newA.setup(newA.name)
for(var/i in 1 to length(turfs)) //Fix lighting. Praise the lord.
var/turf/thing = turfs[i]
newA.contents += thing
thing.change_area(oldA, newA)
move_turfs_to_area(turfs, newA)
newA.has_gravity = oldA.has_gravity
set_area_machinery(newA, newA.name, oldA.name)