Revert "Merge pull request #4541 from comma/dev"

This reverts commit 596b6084e3, reversing
changes made to fa88663c23.
This commit is contained in:
Mloc-Hibernia
2014-03-24 13:54:50 +00:00
parent dc97a2502a
commit 1233e5568f
2 changed files with 3 additions and 6 deletions

View File

@@ -171,10 +171,9 @@ turf/proc/ResetAllLights()
/turf/space/ResetAllLights()
var/atom/movable/lighting_overlay/overlay = locate() in src
if (overlay)
overlay.loc = null
light_overlay = null
is_outside = 1
overlay.loc = null
light_overlay = null
is_outside = 1
. = ..()
turf/proc/ResetValue()

View File

@@ -48,8 +48,6 @@ light/proc/Off()
lit_turfs = list()
light/proc/CalculateBrightness(turf/T)
if (!atom)
return 0
var/square = get_square_dist(atom.x,atom.y,atom.z,T.x,T.y,T.z)
if(square > (radius+2)*(radius+2)) return 0
//+2 offset gives an ambient light effect.