mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes light going through walls.
See https://github.com/tgstation/-tg-station/pull/5972 and https://github.com/tgstation/-tg-station/issues/2788.
This commit is contained in:
@@ -95,7 +95,7 @@ datum/light_source
|
||||
if(owner.loc && owner.luminosity > 0)
|
||||
readrgb(owner.l_color)
|
||||
effect = list()
|
||||
for(var/turf/T in view(owner.get_light_range(),owner))
|
||||
for(var/turf/T in view(owner.get_light_range(),get_turf(owner)))
|
||||
var/delta_lumen = lum(T)
|
||||
if(delta_lumen > 0)
|
||||
effect[T] = delta_lumen
|
||||
|
||||
Reference in New Issue
Block a user