mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-14 00:24:09 +00:00
fix(wire): send NotifyNotEnoughInvSpace with its own message ID
WIRE FIX. DLU sent NotifyNotEnoughInvSpace with the ID of VehicleNotifyFinishedRace (1396). The 1.10.64 client registers it as NOTIFY_NOT_ENOUGH_INV_SPACE (1516, 0x00545c90) and reads freeSlotsNeeded followed by the optional inventoryType (0x00d8b850), which is what the payload already was. Only the message ID changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -187,11 +187,11 @@ namespace GameMessages {
|
||||
LWOOBJID startObjectID{ LWOOBJID_EMPTY }; // optional
|
||||
};
|
||||
|
||||
// Server -> client. DLU sends this with the message ID of VehicleNotifyFinishedRace, not
|
||||
// NOTIFY_NOT_ENOUGH_INV_SPACE; kept as it has always been sent (see docs/PacketArchitecture.md: wire fixes
|
||||
// are separate changes).
|
||||
// Server -> client. WIRE FIX: DLU used to send this with the ID of VehicleNotifyFinishedRace (1396); the client
|
||||
// registers it as NOTIFY_NOT_ENOUGH_INV_SPACE (1516, msgNotifyNotEnoughInvSpace::GetMsgID @ 00545c90 in 1.10.64)
|
||||
// and reads freeSlotsNeeded then the optional inventoryType (00d8b850).
|
||||
struct NotifyNotEnoughInvSpace : public NetGameMsg {
|
||||
NotifyNotEnoughInvSpace() : NetGameMsg(MessageType::Game::VEHICLE_NOTIFY_FINISHED_RACE) {}
|
||||
NotifyNotEnoughInvSpace() : NetGameMsg(MessageType::Game::NOTIFY_NOT_ENOUGH_INV_SPACE) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
bool Deserialize(RakNet::BitStream& bitStream) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user