[MIRROR] The Tramstation Tram no longer shoves the handicapped out of their wheelchairs when moved [MDB IGNORE] (#9763)

* The Tramstation Tram no longer shoves the handicapped out of their wheelchairs when moved

* Feeeeex

Co-authored-by: MMMiracles <lolaccount1@hotmail.com>
Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-11-29 02:03:39 +01:00
committed by GitHub
parent 7d097ce509
commit 38f6ece63b
4 changed files with 9 additions and 2 deletions
@@ -180,6 +180,8 @@ GLOBAL_LIST_EMPTY(lifts)
SIGNAL_HANDLER
if(!(potential_rider in lift_load))
return
if(isliving(potential_rider) && HAS_TRAIT(potential_rider, TRAIT_CANNOT_BE_UNBUCKLED))
REMOVE_TRAIT(potential_rider, TRAIT_CANNOT_BE_UNBUCKLED, BUCKLED_TRAIT)
LAZYREMOVE(lift_load, potential_rider)
UnregisterSignal(potential_rider, COMSIG_PARENT_QDELETING)
@@ -189,6 +191,8 @@ GLOBAL_LIST_EMPTY(lifts)
return
if(AM in lift_load)
return
if(isliving(AM) && !HAS_TRAIT(AM, TRAIT_CANNOT_BE_UNBUCKLED))
ADD_TRAIT(AM, TRAIT_CANNOT_BE_UNBUCKLED, BUCKLED_TRAIT)
LAZYADD(lift_load, AM)
RegisterSignal(AM, COMSIG_PARENT_QDELETING, .proc/RemoveItemFromLift)