[MIRROR] Elevator doors open if called from same z-level [MDB IGNORE] (#19815)

* Elevator doors open if called from same z-level (#73921)

## About The Pull Request

Fixes oversight where button doesn't open doors if the elevator is on
the same z-level.

## Why It's Good For The Game

The lower floor elevators will work properly on Tramstation and wherever
else.

## Changelog
🆑 LT3
fix: Tramstation lower floor elevator buttons work properly at
roundstart
/🆑

* Elevator doors open if called from same z-level

---------

Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-13 04:40:57 +00:00
committed by GitHub
co-authored by lessthanthree
parent 4c7ec2194e
commit 10094e0665
@@ -92,11 +92,12 @@
loc.balloon_alert(activator, "elevator is moving!")
return FALSE
// We can't call an elevator if it's already at this destination
// If the elevator is already here, open the doors.
var/obj/structure/industrial_lift/prime_lift = lift.return_closest_platform_to_z(loc.z)
if(prime_lift.z == loc.z)
INVOKE_ASYNC(lift, TYPE_PROC_REF(/datum/lift_master, open_lift_doors_callback))
loc.balloon_alert(activator, "elevator is here!")
return FALSE
return TRUE
// At this point, we can start moving.