Merge pull request #9889 from PJB3005/bay-lights

Lighting optimizations + NVG meson fix
This commit is contained in:
Mloc
2015-07-09 14:50:10 +01:00
12 changed files with 172 additions and 120 deletions

View File

@@ -26,7 +26,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
icon = 'icons/turf/areas.dmi'
icon_state = "unknown"
layer = 10
luminosity = 1
luminosity = 0
mouse_opacity = 0
var/lightswitch = 1

View File

@@ -33,6 +33,7 @@
var/holy = 0
var/dynamic_lighting = 1
luminosity = 1
/turf/New()
..()
@@ -41,7 +42,6 @@
src.Entered(AM)
return
turfs |= src
return
/turf/Destroy()
turfs -= src
@@ -229,6 +229,7 @@
var/old_opacity = opacity
var/old_dynamic_lighting = dynamic_lighting
var/list/old_affecting_lights = affecting_lights
var/old_lighting_overlay = lighting_overlay
//world << "Replacing [src.type] with [N]"
@@ -280,6 +281,7 @@
W.levelupdate()
. = W
lighting_overlay = old_lighting_overlay
affecting_lights = old_affecting_lights
if((old_opacity != opacity) || (dynamic_lighting != old_dynamic_lighting) || force_lighting_update)
reconsider_lights()