mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-16 09:34:08 +00:00
feat(messages): read ModifyGhostingDistance
LWOCharacterComponent sends ModifyGhostingDistance (1485: an optional fDistanceScalar, default 1) on load. All 239 live packets were the single byte 00 (default scale), so there is nothing for the server to change; it was logged as an unknown game message. It is now read and ignored. Check in game: nothing changes; the world server log no longer has "Received Unknown GM ... 1485" on each load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -396,6 +396,15 @@ namespace GameMessages {
|
||||
return ReadPoint(bitStream, pos);
|
||||
}
|
||||
|
||||
void ModifyGhostingDistance::Serialize(RakNet::BitStream& bitStream) const {
|
||||
BitStreamUtils::WriteOptional(bitStream, fDistanceScalar, 1.0f);
|
||||
}
|
||||
|
||||
bool ModifyGhostingDistance::Deserialize(RakNet::BitStream& bitStream) {
|
||||
VALIDATE_READ(BitStreamUtils::ReadOptional(bitStream, fDistanceScalar, 1.0f));
|
||||
return true;
|
||||
}
|
||||
|
||||
void SetGhostReferencePosition::Handle(Entity& entity, const SystemAddress& sysAddr) {
|
||||
auto* player = PlayerManager::GetPlayer(sysAddr);
|
||||
if (player == nullptr) return;
|
||||
|
||||
Reference in New Issue
Block a user