summaryrefslogtreecommitdiff
path: root/src/network/clientpackethandler.cpp
diff options
context:
space:
mode:
authorANAND <ClobberXD@gmail.com>2019-08-25 06:24:21 +0530
committersfan5 <sfan5@live.de>2019-09-14 20:16:55 +0200
commit81c7f0ae044b1131ad082e5e705c5276f82ac6ce (patch)
tree7de042695c5429d0b6cb75b18998174e6e53a9f6 /src/network/clientpackethandler.cpp
parent9acd36bf9981cf9cb8e82785508d6eb7f010cc77 (diff)
downloadminetest-81c7f0ae044b1131ad082e5e705c5276f82ac6ce.tar.gz
minetest-81c7f0ae044b1131ad082e5e705c5276f82ac6ce.tar.bz2
minetest-81c7f0ae044b1131ad082e5e705c5276f82ac6ce.zip
Send ActiveObjects once right after Init2
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r--src/network/clientpackethandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index a8ae8a5ef..d47571d14 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -463,6 +463,10 @@ void Client::handleCommand_ActiveObjectRemoveAdd(NetworkPacket* pkt)
infostream << "handleCommand_ActiveObjectRemoveAdd: " << e.what()
<< ". The packet is unreliable, ignoring" << std::endl;
}
+
+ // m_activeobjects_received is false before the first
+ // TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD packet is received
+ m_activeobjects_received = true;
}
void Client::handleCommand_ActiveObjectMessages(NetworkPacket* pkt)