aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-13 13:40:48 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-13 13:40:48 +0100
commit126f36c2e6c153f2791db743a8ceca44b6b36b10 (patch)
tree5c75157f79481f58bed0fe15f187374e351b2370 /src/client.cpp
parent4e63c977c782e81e828445d20c836d84e3ba1766 (diff)
downloadminetest-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/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index e36c04edc..8e0f657e2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -407,7 +407,7 @@ void Client::step(float dtime)
snprintf(pName, PLAYERNAME_SIZE, "%s", myplayer->getName());
snprintf(pPassword, PASSWORD_SIZE, "%s", m_password.c_str());
- NetworkPacket* pkt = new NetworkPacket(TOSERVER_INIT,
+ NetworkPacket* pkt = new NetworkPacket(TOSERVER_INIT_LEGACY,
1 + PLAYERNAME_SIZE + PASSWORD_SIZE + 2 + 2);
*pkt << (u8) SER_FMT_VER_HIGHEST_READ;
@@ -1065,7 +1065,7 @@ void Client::sendChangePassword(const std::wstring &oldpassword,
std::string oldpwd = translatePassword(playername, oldpassword);
std::string newpwd = translatePassword(playername, newpassword);
- NetworkPacket* pkt = new NetworkPacket(TOSERVER_PASSWORD, 2 * PASSWORD_SIZE);
+ NetworkPacket* pkt = new NetworkPacket(TOSERVER_PASSWORD_LEGACY, 2 * PASSWORD_SIZE);
for(u8 i = 0; i < PASSWORD_SIZE; i++) {
*pkt << (u8) (i < oldpwd.length() ? oldpwd[i] : 0);