Fixes tram deleting its own landmarks on reset_lift_contents() (#77921)

## About The Pull Request

Excludes tram landmarks from being deleted when reset_lift_contents() is
called.

## Why It's Good For The Game

Fixes https://github.com/tgstation/tgstation/issues/77782

## Changelog

🆑 LT3
fix: Tram will no longer fly off into space when admins try to reset the
contents
/🆑
This commit is contained in:
lessthanthree
2023-08-26 18:48:38 -07:00
committed by GitHub
parent 8699b133ba
commit 57daae0459
2 changed files with 2 additions and 2 deletions
@@ -552,7 +552,7 @@ GLOBAL_LIST_INIT(all_radial_directions, list(
var/list/atom/movable/foreign_contents_in_loc = list()
for(var/atom/movable/foreign_movable as anything in (turf_loc.contents - original_contents))
if(foreign_objects && ismovable(foreign_movable) && !ismob(foreign_movable))
if(foreign_objects && ismovable(foreign_movable) && !ismob(foreign_movable) && !istype(foreign_movable, /obj/effect/landmark/tram))
foreign_contents_in_loc += foreign_movable
continue
@@ -67,7 +67,7 @@
if(initial_destination)
idle_platform = initial_destination
if(initial_destination)
if(beacon)
nav_beacon = beacon
/datum/lift_master/tram/proc/check_starting_landmark()