Lighting now states which atom is missing a light_sources list on

runtime
This commit is contained in:
Crazylemon64
2017-02-17 23:07:43 -08:00
parent e0b23a1e10
commit 11c9f59abd
+4 -1
View File
@@ -66,7 +66,10 @@
destroyed = TRUE
force_update()
if(source_atom)
source_atom.light_sources -= src
if(!source_atom.light_sources)
log_runtime(EXCEPTION("Atom [source_atom] was a light source, but lacked a light source list!\n"), source_atom)
else
source_atom.light_sources -= src
if(top_atom)
top_atom.light_sources -= src