mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
fix(moving platform): end the subcomponent list with a 0 bit
The client reads a moving platform's subcomponents while a 1 bit comes before one (LWOMovingPlatformComponent::Deserialize), as live wrote them. DLU wrote the mover without the closing 0 bit, so the client took the next component's first bit for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -118,6 +118,9 @@ void MovingPlatformComponent::Serialize(RakNet::BitStream& outBitStream, bool bI
|
||||
} else {
|
||||
mover->Serialize(outBitStream, bIsInitialUpdate);
|
||||
}
|
||||
|
||||
// The client reads subcomponents while a 1 bit comes before one: a 0 bit ends the list
|
||||
outBitStream.Write0();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user