fix(Core): player's fall position on elevators (#7076)
- Closes #5804. - Closes #5936.
This commit is contained in:
@@ -929,7 +929,10 @@ void StaticTransport::UpdatePassengerPositions()
|
|||||||
break;
|
break;
|
||||||
case TYPEID_PLAYER:
|
case TYPEID_PLAYER:
|
||||||
if (passenger->IsInWorld())
|
if (passenger->IsInWorld())
|
||||||
|
{
|
||||||
GetMap()->PlayerRelocation(passenger->ToPlayer(), x, y, z, o);
|
GetMap()->PlayerRelocation(passenger->ToPlayer(), x, y, z, o);
|
||||||
|
passenger->ToPlayer()->SetFallInformation(time(nullptr), z);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TYPEID_GAMEOBJECT:
|
case TYPEID_GAMEOBJECT:
|
||||||
GetMap()->GameObjectRelocation(passenger->ToGameObject(), x, y, z, o);
|
GetMap()->GameObjectRelocation(passenger->ToGameObject(), x, y, z, o);
|
||||||
|
|||||||
Reference in New Issue
Block a user