Fix some things assuming lighting corners existed (#1642)

This commit is contained in:
CitadelStationBot
2017-06-17 13:17:21 -07:00
committed by kevinz000
parent b5a5b4aada
commit 08a0ba5692
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -24,6 +24,8 @@
var/datum/lighting_corner/C
var/thing
for (thing in corners)
if(!thing)
continue
C = thing
C.update_active()
@@ -45,6 +47,8 @@
var/datum/lighting_corner/C
var/datum/light_source/S
for (thing in corners)
if(!thing)
continue
C = thing
if (!C.active) // We would activate the corner, calculate the lighting for it.
for (thing in C.affecting)
@@ -61,6 +65,8 @@
var/thing
var/datum/lighting_corner/L
for (thing in corners)
if(!thing)
continue
L = thing
totallums += L.lum_r + L.lum_b + L.lum_g