diff options
author | red-001 <red-001@outlook.ie> | 2017-01-16 23:09:47 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-01-17 00:09:47 +0100 |
commit | 2f56a00d9eef82052614e5854a07b39b087efd0b (patch) | |
tree | 0e83270b3eda3a3400afc9d1de3901dfa977253d /src/client.cpp | |
parent | d2f5732f89cd58dafc6a4f398b8ebfd122754852 (diff) | |
download | minetest-2f56a00d9eef82052614e5854a07b39b087efd0b.tar.gz minetest-2f56a00d9eef82052614e5854a07b39b087efd0b.tar.bz2 minetest-2f56a00d9eef82052614e5854a07b39b087efd0b.zip |
Remove client-side chat prediction. (#5055)
Network lag isn't really a big issue with chat and chat prediction makes writing mods harder.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index c2471dbd7..30058a2b0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1563,10 +1563,13 @@ void Client::typeChatMessage(const std::wstring &message) } else { - LocalPlayer *player = m_env.getLocalPlayer(); - assert(player != NULL); - std::wstring name = narrow_to_wide(player->getName()); - m_chat_queue.push((std::wstring)L"<" + name + L"> " + message); + // compatibility code + if (m_proto_ver < 29) { + LocalPlayer *player = m_env.getLocalPlayer(); + assert(player != NULL); + std::wstring name = narrow_to_wide(player->getName()); + m_chat_queue.push((std::wstring)L"<" + name + L"> " + message); + } } } |