Lighting seems to be working now.

This commit is contained in:
Aryn
2014-02-24 05:58:11 -07:00
parent ca7d4026b8
commit 7f4c4715e7
7 changed files with 75 additions and 19 deletions
+8
View File
@@ -218,6 +218,8 @@ var/turf_light_data/old_lights = new
//world << "Replacing [src.type] with [N]"
var/old_opacity = opacity
old_lights.copy_from(src)
if(connections) connections.erase_all()
@@ -241,6 +243,11 @@ var/turf_light_data/old_lights = new
//W.Assimilate_Air()
old_lights.copy_to(W)
W.ResetValue()
if(old_opacity)
W.opacity = 1
W.SetOpacity(0)
if (istype(W,/turf/simulated/floor))
W.RemoveLattice()
@@ -260,6 +267,7 @@ var/turf_light_data/old_lights = new
var/turf/W = new N( locate(src.x, src.y, src.z) )
old_lights.copy_to(W)
W.ResetValue()
if(air_master)
air_master.mark_for_update(src)