From 5a03b1f5f928e30cb650f9d16bc4fbb866275405 Mon Sep 17 00:00:00 2001 From: Lars Hofhansl Date: Sun, 3 Dec 2017 17:51:58 -0800 Subject: Optionally extend the active object in a players camera direction. See #6667 By setting active_object_send_range_blocks > active_block_range a server admin can allow clients to retrieve active objects futher out from the player at relatively low cost to the server (only objects in the players' view cone are considered). --- src/serverenvironment.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/serverenvironment.h') diff --git a/src/serverenvironment.h b/src/serverenvironment.h index b8a35f7fd..cb813155d 100644 --- a/src/serverenvironment.h +++ b/src/serverenvironment.h @@ -154,8 +154,9 @@ private: class ActiveBlockList { public: - void update(std::vector &active_positions, - s16 radius, + void update(std::vector &active_players, + s16 active_block_range, + s16 active_object_range, std::set &blocks_removed, std::set &blocks_added); @@ -168,6 +169,7 @@ public: } std::set m_list; + std::set m_abm_list; std::set m_forceloaded_list; private: -- cgit v1.2.3