Core/Players: Fixed objects not being visible after seamless teleports

This commit is contained in:
Shauren
2024-01-05 00:18:47 +01:00
parent f7a75a58f5
commit 390f0be9fb

View File

@@ -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)