fix an issue with destroying light sources that have 0 light_range

Signed-off-by: Mloc <colmohici@gmail.com>
This commit is contained in:
Mloc
2015-05-14 10:58:52 +01:00
parent 9ed8f69e02
commit d6f4828f2a
2 changed files with 4 additions and 6 deletions

View File

@@ -69,7 +69,7 @@
lighting_update_lights += src
/datum/light_source/proc/check()
if(!source_atom)
if(!source_atom || !light_range || !light_power)
destroy()
return 1
@@ -97,7 +97,7 @@
light_color = source_atom.light_color
parse_light_color()
. = 1
if(light_range && light_power && !applied)
. = 1