mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
new viewing range updater algorithm
This commit is contained in:
parent
3cae2310f5
commit
582af0cb21
5 changed files with 153 additions and 13 deletions
|
@ -2890,7 +2890,7 @@ void ServerMap::PrintInfo(std::ostream &out)
|
|||
ClientMap::ClientMap(
|
||||
Client *client,
|
||||
JMutex &range_mutex,
|
||||
s16 &viewing_range_nodes,
|
||||
float &viewing_range_nodes,
|
||||
bool &viewing_range_all,
|
||||
scene::ISceneNode* parent,
|
||||
scene::ISceneManager* mgr,
|
||||
|
@ -3013,7 +3013,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||
all changed nodes in viewing range at the next step.
|
||||
*/
|
||||
|
||||
s16 viewing_range_nodes;
|
||||
float viewing_range_nodes;
|
||||
bool viewing_range_all;
|
||||
{
|
||||
JMutexAutoLock lock(m_range_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue