mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Merge pull request #1447 from PJB3005/CARPET
Fixes fucked up lights on carpets and the alike.
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
. = ..()
|
||||
verbs.Cut()
|
||||
|
||||
var/turf/T = loc //If this runtimes atleast we'll know what's creating overlays outside of turfs.
|
||||
T.luminosity = 0
|
||||
|
||||
/atom/movable/lighting_overlay/proc/get_clamped_lum(var/minlum = 0, var/maxlum = 1)
|
||||
var/lum = max(lum_r, lum_g, lum_b)
|
||||
if(lum <= minlum)
|
||||
|
||||
Reference in New Issue
Block a user