diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-13 13:40:48 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-13 13:40:48 +0100 |
commit | 126f36c2e6c153f2791db743a8ceca44b6b36b10 (patch) | |
tree | 5c75157f79481f58bed0fe15f187374e351b2370 /src/network/packethandlers | |
parent | 4e63c977c782e81e828445d20c836d84e3ba1766 (diff) | |
download | minetest-126f36c2e6c153f2791db743a8ceca44b6b36b10.tar.gz minetest-126f36c2e6c153f2791db743a8ceca44b6b36b10.tar.bz2 minetest-126f36c2e6c153f2791db743a8ceca44b6b36b10.zip |
Rename some packet and handlers to <packet>_Legacy name for compat layer between new network changes and old network clients
Diffstat (limited to 'src/network/packethandlers')
-rw-r--r-- | src/network/packethandlers/client.cpp | 4 | ||||
-rw-r--r-- | src/network/packethandlers/server.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/network/packethandlers/client.cpp b/src/network/packethandlers/client.cpp index 69f39d1f3..7b3adeda4 100644 --- a/src/network/packethandlers/client.cpp +++ b/src/network/packethandlers/client.cpp @@ -89,7 +89,7 @@ void Client::handleCommand_Init(NetworkPacket* pkt) m_state = LC_Init; } -void Client::handleCommand_AccessDenied(NetworkPacket* pkt) +void Client::handleCommand_AccessDenied_Legacy(NetworkPacket* pkt) { // The server didn't like our password. Note, this needs // to be processed even if the serialisation format has @@ -822,7 +822,7 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt) } -void Client::handleCommand_DeleteParticleSpawner(NetworkPacket* pkt) +void Client::handleCommand_DeleteParticleSpawner_Legacy(NetworkPacket* pkt) { u16 id; diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index 537858e52..113ca6c8f 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -43,7 +43,7 @@ void Server::handleCommand_Deprecated(NetworkPacket* pkt) << " not supported anymore" << std::endl; } -void Server::handleCommand_Init(NetworkPacket* pkt) +void Server::handleCommand_Init_Legacy(NetworkPacket* pkt) { // [0] u8 SER_FMT_VER_HIGHEST_READ // [1] u8[20] player_name @@ -942,7 +942,7 @@ void Server::handleCommand_Breath(NetworkPacket* pkt) SendPlayerBreath(pkt->getPeerId()); } -void Server::handleCommand_Password(NetworkPacket* pkt) +void Server::handleCommand_Password_Legacy(NetworkPacket* pkt) { /* [0] u16 TOSERVER_PASSWORD |