From 25e27ccb95e20616597bf3c1f19abe7a5ea7d11b Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 9 Sep 2019 10:22:20 +0300 Subject: [PATCH] [General] Use placeholder packet ID for unused CellCreate packet --- apps/openmw/mwmp/processors/worldstate/ProcessorCellCreate.hpp | 2 +- components/openmw-mp/NetworkMessages.hpp | 3 ++- components/openmw-mp/Packets/Worldstate/PacketCellCreate.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmp/processors/worldstate/ProcessorCellCreate.hpp b/apps/openmw/mwmp/processors/worldstate/ProcessorCellCreate.hpp index a32ccd8d1..993eaf48a 100644 --- a/apps/openmw/mwmp/processors/worldstate/ProcessorCellCreate.hpp +++ b/apps/openmw/mwmp/processors/worldstate/ProcessorCellCreate.hpp @@ -10,7 +10,7 @@ namespace mwmp public: ProcessorCellCreate() { - BPP_INIT(ID_CELL_CREATE) + BPP_INIT(ID_PLACEHOLDER) } virtual void Do(WorldstatePacket &packet, Worldstate &worldstate) diff --git a/components/openmw-mp/NetworkMessages.hpp b/components/openmw-mp/NetworkMessages.hpp index 19b957404..d2f6ba5e5 100644 --- a/components/openmw-mp/NetworkMessages.hpp +++ b/components/openmw-mp/NetworkMessages.hpp @@ -108,7 +108,8 @@ enum GameMessages ID_WORLD_WEATHER, ID_PLAYER_ITEM_USE, - ID_PLAYER_CAST + ID_PLAYER_CAST, + ID_PLACEHOLDER }; enum OrderingChannel diff --git a/components/openmw-mp/Packets/Worldstate/PacketCellCreate.cpp b/components/openmw-mp/Packets/Worldstate/PacketCellCreate.cpp index 7211a242f..31d650a00 100644 --- a/components/openmw-mp/Packets/Worldstate/PacketCellCreate.cpp +++ b/components/openmw-mp/Packets/Worldstate/PacketCellCreate.cpp @@ -5,7 +5,7 @@ using namespace mwmp; PacketCellCreate::PacketCellCreate(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer) { - packetID = ID_CELL_CREATE; + packetID = ID_PLACEHOLDER; orderChannel = CHANNEL_SYSTEM; }