aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-04-07 14:28:36 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-04-07 14:28:36 +0200
commit5132908f4b834c344d19dcb20939cda175fc82a4 (patch)
treedaf79a653b1e59a0163cd072263b126e43090bd0 /src/server.cpp
parent3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d (diff)
downloadminetest-5132908f4b834c344d19dcb20939cda175fc82a4.tar.gz
minetest-5132908f4b834c344d19dcb20939cda175fc82a4.tar.bz2
minetest-5132908f4b834c344d19dcb20939cda175fc82a4.zip
TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable message
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index cb62f7e86..6597ee64f 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1911,7 +1911,7 @@ void Server::SendActiveObjectMessages(u16 peer_id, const std::string &datas, boo
pkt.putRawString(datas.c_str(), datas.size());
m_clients.send(pkt.getPeerId(),
- clientCommandFactoryTable[pkt.getCommand()].channel,
+ reliable ? clientCommandFactoryTable[pkt.getCommand()].channel : 1,
&pkt, reliable);
}