mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
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).
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user