From 7d0ddfeec9ea9703142aa99b1d34a10596feecb7 Mon Sep 17 00:00:00 2001 From: Kyep Date: Thu, 22 Nov 2018 18:59:04 -0800 Subject: [PATCH] reverted to my way of doing it, sans Uncrossed --- code/modules/mob/dead/dead.dm | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/dead/dead.dm b/code/modules/mob/dead/dead.dm index fb28f0eea37..922f3181c27 100644 --- a/code/modules/mob/dead/dead.dm +++ b/code/modules/mob/dead/dead.dm @@ -1,5 +1,23 @@ /mob/dead/forceMove(atom/destination) // Overriden from code/game/atoms_movable.dm#141 to prevent things like mice squeaking when ghosts walk on them. - var/oldloc = loc - loc = destination - Moved(oldloc, NONE, TRUE) + // Same as parent, except that it does not include Uncrossed or Crossed calls. + var/turf/old_loc = loc + loc = destination + + if(old_loc) + old_loc.Exited(src, destination) + + if(destination) + destination.Entered(src) + + if(isturf(destination) && opacity) + var/turf/new_loc = destination + new_loc.reconsider_lights() + + if(isturf(old_loc) && opacity) + old_loc.reconsider_lights() + + for(var/datum/light_source/L in light_sources) + L.source_atom.update_light() + + return 1