summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2017-12-03 17:51:58 -0800
committerLars Hofhansl <larsh@apache.org>2017-12-03 17:52:05 -0800
commit5a03b1f5f928e30cb650f9d16bc4fbb866275405 (patch)
tree250d3259956e2efa04ad1e0b887364d5c8a95d8f /src/serverenvironment.h
parent83b12ed481fdb1f0c86a97de8a2887acaa32079e (diff)
downloadminetest-5a03b1f5f928e30cb650f9d16bc4fbb866275405.tar.gz
minetest-5a03b1f5f928e30cb650f9d16bc4fbb866275405.tar.bz2
minetest-5a03b1f5f928e30cb650f9d16bc4fbb866275405.zip
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).
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h6
1 files changed, 4 insertions, 2 deletions
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<v3s16> &active_positions,
- s16 radius,
+ void update(std::vector<PlayerSAO*> &active_players,
+ s16 active_block_range,
+ s16 active_object_range,
std::set<v3s16> &blocks_removed,
std::set<v3s16> &blocks_added);
@@ -168,6 +169,7 @@ public:
}
std::set<v3s16> m_list;
+ std::set<v3s16> m_abm_list;
std::set<v3s16> m_forceloaded_list;
private: