mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Lighting seems to be working now.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user