From 81c7f0ae044b1131ad082e5e705c5276f82ac6ce Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 25 Aug 2019 06:24:21 +0530 Subject: Send ActiveObjects once right after Init2 --- src/network/clientpackethandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/network/clientpackethandler.cpp') 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) -- cgit v1.2.3