mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 08:45:27 +00:00
fix: a character's activity or PVP change is serialized once
LWOCharacterComponent::Deserialize (0x00ca3a40) reads the GM and PVP block and the current activity each behind its own flag bit. DLU never cleared the two dirty flags, so after the first quick build or pet taming every later serialization of the player carried both blocks again. They are cleared after an update now, as the guild block's is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -245,11 +245,15 @@ void CharacterComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInit
|
||||
outBitStream.Write(m_GMLevel);
|
||||
outBitStream.Write(m_EditorEnabled);
|
||||
outBitStream.Write(m_EditorLevel);
|
||||
if (!bIsInitialUpdate) m_DirtyGMInfo = false;
|
||||
}
|
||||
|
||||
const bool writeCurrentActivity = bIsInitialUpdate || m_DirtyCurrentActivity;
|
||||
outBitStream.Write(writeCurrentActivity);
|
||||
if (writeCurrentActivity) outBitStream.Write(m_CurrentActivity);
|
||||
if (writeCurrentActivity) {
|
||||
outBitStream.Write(m_CurrentActivity);
|
||||
if (!bIsInitialUpdate) m_DirtyCurrentActivity = false;
|
||||
}
|
||||
|
||||
const bool writeSocialInfo = bIsInitialUpdate || m_DirtySocialInfo;
|
||||
outBitStream.Write(writeSocialInfo);
|
||||
|
||||
Reference in New Issue
Block a user