1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make client report a newer version number to the server than 2011-07-31 does and make the server enforce it

This commit is contained in:
Perttu Ahola 2011-09-22 20:47:47 +03:00
parent 7244f09111
commit bdf54908aa
4 changed files with 13 additions and 2 deletions

View file

@ -431,7 +431,7 @@ void Client::step(float dtime)
snprintf((char*)&data[23], PASSWORD_SIZE, "%s", m_password.c_str());
// This should be incremented in each version
writeU16(&data[51], 1);
writeU16(&data[51], 2);
// Send as unreliable
Send(0, data, false);