From 4fd1a1ff78397e1468f3513794d1711ee39d54e8 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 30 Aug 2017 00:02:45 +0200 Subject: [PATCH] Fix changeturf not properly destroying own lights. Changeturf doesn't call Destroy() so lights on the source turf weren't getting removed, resulting in runtimes later as the light attempted to remove from a turf that didn't know about it. --- code/game/turfs/turf.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index a5e4190d6ea..83de35ea82c 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -157,6 +157,7 @@ return if(!use_preloader && path == type) // Don't no-op if the map loader requires it to be reconstructed return src + set_light(0) var/old_opacity = opacity var/old_dynamic_lighting = dynamic_lighting var/old_affecting_lights = affecting_lights