mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-14 16:44:09 +00:00
fix(master): a rocket launch preps the clone the player is going to
Launching to a property started an extra clone 0 instance of the zone besides the property's own, because the prep only carried the zone. PrepZone now carries the clone when there is one (written only then, so a plain prep is unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -190,9 +190,11 @@ namespace MasterPackets {
|
||||
bool Deserialize(RakNet::BitStream& bitStream) override;
|
||||
};
|
||||
|
||||
// World -> master: start an instance of zoneID now, players are about to ask for it
|
||||
// World -> master: start an instance of zoneID now, players are about to ask for it. cloneID: the clone they will ask
|
||||
// for (a property), written only when not 0 so a plain prep stays as it always was
|
||||
struct PrepZone : public LUBitStream {
|
||||
int32_t zoneID{};
|
||||
uint32_t cloneID{};
|
||||
|
||||
PrepZone() : LUBitStream(ServiceType::MASTER, MessageType::Master::PREP_ZONE) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
|
||||
Reference in New Issue
Block a user