Reduction of number of ul_Illuminate and ul_Extinguish calls. (@Miniature) Also fixed a bug with the SMES room lighting.

This commit is contained in:
SkyMarshal
2012-06-20 09:34:17 -07:00
parent 1775923676
commit 61124c86a8
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -278,9 +278,12 @@ atom/Del()
. = ..()
atom/movable/Move()
ul_Extinguish()
. = ..()
ul_Illuminate()
if(LuminosityRed || LuminosityGreen || LuminosityBlue)
ul_Extinguish()
. = ..()
ul_Illuminate()
else
return ..()
turf/var/list/MaxRed
+2 -2
View File
@@ -37,8 +37,8 @@
power_light = 0//rastaf0
power_equip = 0//rastaf0
power_environ = 0//rastaf0
luminosity = 1
ul_Lighting = 0
if(!ul_Lighting)
luminosity = 1
else
luminosity = 0
area_lights_luminosity = rand(6,7)