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