fix(world): a player's client reloading the zone gets its character and the world again

A client that loads the zone again while its player is in the world (the
Happy Flower editor reloads the zone in place) sent LEVEL_LOAD_COMPLETE a
second time; LoadPlayer returned at once because the player existed, so
the client waited forever. Now the server resends the character
(CreateCharacter, ServerStates), forgets what it had sent that client,
constructs every object again and sends the done-loading sequence at the
player's current place. A first load is unchanged.

The Happy Flower editor messages (GetEditorLevel, the HF_* messages) are
logged when they arrive, until the server handles them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-13 09:49:35 -05:00
parent 18d4b82bca
commit eb4d1eabe5
3 changed files with 43 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ public:
void GhostEntity(const LWOOBJID id);
// The client dropped every object it had (it reloaded the zone in place): nothing counts as sent to it any more
void ForgetObservedEntities() { m_ObservedEntities.clear(); m_LimboConstructions.clear(); }
bool OnToggleGMInvis(GameMessages::ToggleGMInvisEvent& event);
bool OnGetGMInvis(GameMessages::GetGMInvis& msg);