fix(Core): player's fall position on elevators (#7076)

- Closes #5804.
- Closes #5936.
This commit is contained in:
UltraNix
2021-07-27 10:08:00 +02:00
committed by GitHub
parent 70a8066ab0
commit f9125f130e

View File

@@ -929,7 +929,10 @@ void StaticTransport::UpdatePassengerPositions()
break;
case TYPEID_PLAYER:
if (passenger->IsInWorld())
{
GetMap()->PlayerRelocation(passenger->ToPlayer(), x, y, z, o);
passenger->ToPlayer()->SetFallInformation(time(nullptr), z);
}
break;
case TYPEID_GAMEOBJECT:
GetMap()->GameObjectRelocation(passenger->ToGameObject(), x, y, z, o);