fix(Core): player's fall position on elevators (#7076)
- Closes #5804. - Closes #5936.
This commit is contained in:
parent
70a8066ab0
commit
f9125f130e
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue