]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/mesh_generator_thread.h
Merge branch 'master' of https://github.com/minetest/minetest
[dragonfireclient.git] / src / client / mesh_generator_thread.h
index f393e2368ba66fb92e63c24d9c4645ed460d8d16..2ef69595449b8d519b1c9608a7f5c2d148ebfe32 100644 (file)
@@ -66,7 +66,7 @@ class MeshUpdateQueue
 
        // 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 @@ class MeshUpdateThread : public UpdateThread
 
        // 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;