diff --git a/code/controllers/_DynamicAreaLighting_TG.dm b/code/controllers/_DynamicAreaLighting_TG.dm index 03ea77affc..a93a7b6440 100644 --- a/code/controllers/_DynamicAreaLighting_TG.dm +++ b/code/controllers/_DynamicAreaLighting_TG.dm @@ -74,6 +74,7 @@ datum/light_source changed = 1 if (owner.l_color != _l_color) + readrgb(owner.l_color) changed = 1 if(changed) diff --git a/code/controllers/lighting_controller.dm b/code/controllers/lighting_controller.dm index ccd883a393..08c29e1a07 100644 --- a/code/controllers/lighting_controller.dm +++ b/code/controllers/lighting_controller.dm @@ -16,7 +16,6 @@ datum/controller/lighting var/list/changed_turfs = list() var/changed_turfs_workload_max = 0 - var/list/changed_areas = list() datum/controller/lighting/New() lighting_states = max( 0, length(icon_states(LIGHTING_ICON))-1 ) @@ -55,19 +54,9 @@ datum/controller/lighting/proc/process() for(var/i=1, i<=changed_turfs.len, i++) var/turf/T = changed_turfs[i] if(T && T.lighting_changed) - changed_areas |= T.loc T.shift_to_subarea() changed_turfs.Cut() // reset the changed list - for(var/i = 1; i <= changed_areas.len, i++) - var/area/A = changed_areas[i] - if(A.master != A && !A.contents.len) - A.tag = null - A.related -= A - active_areas -= A - all_areas -= A - changed_areas.Cut() - process_cost = (world.timeofday - started) sleep(processing_interval)