mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-20 02:35:28 +00:00
Merge exp/seamless-transfer-2: seamless instance moves keep the player in place
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,11 @@ namespace GameMessages {
|
||||
return;
|
||||
}
|
||||
const auto* const zoneControlEntity = Game::entityManager->GetZoneControlEntity();
|
||||
SendPlayerReady(entity->GetObjectID(), zoneControlEntity ? zoneControlEntity->GetObjectID() : LWOOBJID_EMPTY, sysAddr);
|
||||
// A client that kept its player across a seamless instance move is ready already; PlayerReady would only put
|
||||
// its camera's pitch back to the default (LWOCharacterComponent::iSendMessage, 0x00d34330)
|
||||
if (!WorldMigration::ArrivesSeamlessly(entity->GetObjectID())) {
|
||||
SendPlayerReady(entity->GetObjectID(), zoneControlEntity ? zoneControlEntity->GetObjectID() : LWOOBJID_EMPTY, sysAddr);
|
||||
}
|
||||
entity->SetPlayerReadyForUpdates();
|
||||
|
||||
// Venture vision from equipped items was sent before the client's UI existed on a fresh login
|
||||
|
||||
Reference in New Issue
Block a user