mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 08:45:27 +00:00
fix: a seamless instance move keeps the player in scope, in place and without the white fade
The source no longer destroys the player's own ghost: losing it hid the character, and the target's construction brought it back with the login effect (LWOGhostComponent::OnGhostReceiveDestruction, 0x00c99410, LWOBaseRenderComponent::OnEnterScope, 0x00be2150). The target constructs the player to its own client without a position and with world transition state 3. The client sends PlayerLoaded itself after that construction, so the server only runs it when none came within 5 s, and PlayerReady (camera pitch reset) is not sent. A seamless arrival is only expected for 30 s, so a later login gets LOAD_STATIC_ZONE. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -1213,7 +1213,11 @@ void LoadPlayer(const SystemAddress& sysAddr) {
|
||||
}
|
||||
}
|
||||
|
||||
// Their own client's construction of the player: one that kept its player (seamless instance move) is not
|
||||
// to be put back where it was saved or shown a world transition
|
||||
WorldMigration::KeepClientPlayer(player, true);
|
||||
Game::entityManager->ConstructAllEntities(sysAddr);
|
||||
WorldMigration::KeepClientPlayer(player, false);
|
||||
|
||||
characterComponent->RocketUnEquip(player);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user