mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Fixed objects not being visible after seamless teleports
This commit is contained in:
@@ -1526,6 +1526,9 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
||||
}
|
||||
|
||||
SendDirectMessage(transferPending.Write());
|
||||
|
||||
RemovePlayerLocalFlag(PLAYER_LOCAL_FLAG_OVERRIDE_TRANSPORT_SERVER_TIME);
|
||||
SetTransportServerTime(0);
|
||||
}
|
||||
|
||||
// remove from old map now
|
||||
@@ -1662,9 +1665,6 @@ void Player::RemoveFromWorld()
|
||||
GetName(), GetGUID().ToString(), viewpoint->GetEntry(), viewpoint->GetTypeId());
|
||||
SetViewpoint(viewpoint, false);
|
||||
}
|
||||
|
||||
RemovePlayerLocalFlag(PLAYER_LOCAL_FLAG_OVERRIDE_TRANSPORT_SERVER_TIME);
|
||||
SetTransportServerTime(0);
|
||||
}
|
||||
|
||||
void Player::SetObjectScale(float scale)
|
||||
|
||||
Reference in New Issue
Block a user