mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Refactor the network code also change protocol (#25575)
* Change the network protocol and refactor the code, still supports the old format for now * Bump up network version * Update changelog.txt
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
namespace OpenRCT2::Network
|
||||
{
|
||||
Packet::Packet(Command id) noexcept
|
||||
: Header{ 0, id }
|
||||
: Header{ PacketHeader::kMagic, PacketHeader::kVersion, 0, id }
|
||||
{
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace OpenRCT2::Network
|
||||
|
||||
Command Packet::GetCommand() const noexcept
|
||||
{
|
||||
return Header.Id;
|
||||
return Header.id;
|
||||
}
|
||||
|
||||
void Packet::Clear() noexcept
|
||||
|
||||
Reference in New Issue
Block a user