change null to 0 in lighting/lighting_source.dm

This commit is contained in:
LetterJay
2016-12-25 02:30:04 -06:00
parent 1ced4344a4
commit b18e2848ae
6 changed files with 83 additions and 46 deletions

View File

@@ -262,10 +262,12 @@
effect_str.Cut()
/datum/light_source/proc/recalc_corner(var/datum/lighting_corner/C)
if (effect_str.Find(C)) // Already have one.
REMOVE_CORNER(C)
if(!C)
return
if (effect_str.Find(C)) // Already have one.
REMOVE_CORNER(C)
APPLY_CORNER(C)
APPLY_CORNER(C)
/datum/light_source/proc/smart_vis_update()
var/list/datum/lighting_corner/corners = list()