Ghosts now don't call moved twice (#20751)

This commit is contained in:
Farie82
2023-04-04 09:43:46 +01:00
committed by GitHub
parent 6ac3c0a90f
commit d37d998bc8
2 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -8,14 +8,14 @@
update_z(null)
return ..()
/mob/dead/forceMove(atom/destination)
/mob/dead/forceMove(atom/destination, direction = NONE)
var/turf/old_turf = get_turf(src)
var/turf/new_turf = get_turf(destination)
if (old_turf?.z != new_turf?.z)
onTransitZ(old_turf?.z, new_turf?.z)
var/oldloc = loc
loc = destination
Moved(oldloc, NONE)
Moved(oldloc, direction)
/mob/dead/onTransitZ(old_z,new_z)
..()