diff options
author | Vitaliy <numzer0@yandex.ru> | 2021-12-30 00:59:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 22:59:53 +0100 |
commit | 9b650b9efb1d4617c97e86639ff115067a73e83a (patch) | |
tree | e0cec7fda984c54deb66ab56249a528ead2c613e /src/client/mesh_generator_thread.h | |
parent | 481bb90eac45651ba6f71860ed669341fcbef6f1 (diff) | |
download | minetest-9b650b9efb1d4617c97e86639ff115067a73e83a.tar.xz |
Add more neighbors on mesh update (#6765)
Diffstat (limited to 'src/client/mesh_generator_thread.h')
-rw-r--r-- | src/client/mesh_generator_thread.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/mesh_generator_thread.h b/src/client/mesh_generator_thread.h index 4371b8390..1b734bc06 100644 --- a/src/client/mesh_generator_thread.h +++ b/src/client/mesh_generator_thread.h @@ -66,7 +66,7 @@ public: // Caches the block at p and its neighbors (if needed) and queues a mesh // update for the block at p - void addBlock(Map *map, v3s16 p, bool ack_block_to_server, bool urgent); + bool addBlock(Map *map, v3s16 p, bool ack_block_to_server, bool urgent); // Returned pointer must be deleted // Returns NULL if queue is empty @@ -113,7 +113,8 @@ public: // Caches the block at p and its neighbors (if needed) and queues a mesh // update for the block at p - void updateBlock(Map *map, v3s16 p, bool ack_block_to_server, bool urgent); + void updateBlock(Map *map, v3s16 p, bool ack_block_to_server, bool urgent, + bool update_neighbors = false); v3s16 m_camera_offset; MutexedQueue<MeshUpdateResult> m_queue_out; |