Various lighting fixes. (#94)

* Various lighting fixes.

* Removes debug things.

* I forgot to hit crtl+s
This commit is contained in:
Pieter-Jan Briers
2016-12-16 19:18:09 +01:00
committed by TalkingCactus
parent 8724be8fca
commit 8b762a5317
6 changed files with 33 additions and 20 deletions
+4 -2
View File
@@ -64,9 +64,11 @@
if (source_atom)
if (source_atom.light == src)
source_atom.light = null
source_atom.light_sources -= src
if (top_atom)
if (source_atom.light_sources)
source_atom.light_sources -= src
if (top_atom && top_atom.light_sources)
top_atom.light_sources -= src
// Fuck supporting force.