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
/🆑
This commit is contained in:
lessthanthree
2023-03-12 20:02:27 -06:00
committed by GitHub
parent 7258881f73
commit ba63c94b8b
@@ -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.