]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/map.h
comments
[dragonfireclient.git] / src / map.h
index 787e1240fd6d821ede30b2988c509aed32cc8152..9140d4bf254372b50af39e9224ff101fe1714a27 100644 (file)
--- a/src/map.h
+++ b/src/map.h
@@ -204,10 +204,13 @@ class Map : public NodeContainer, public Heightmappish
        void expireMeshes(bool only_daynight_diffed);
        
        /*
-               Updates the faces of the given block and blocks on the
+               Update the faces of the given block and blocks on the
                leading edge.
        */
        void updateMeshes(v3s16 blockpos, u32 daynight_ratio);
+       
+       // Update meshes that touch the node
+       //void updateNodeMeshes(v3s16 nodepos, u32 daynight_ratio);
 #endif
 
        /*
@@ -483,10 +486,16 @@ class ClientMap : public Map, public scene::ISceneNode
        /*
                Methods for setting temporary modifications to nodes for
                drawing.
-               Return value is position of changed block.
+
+               Returns true if something changed.
+               
+               All blocks whose mesh could have been changed are inserted
+               to affected_blocks.
        */
-       v3s16 setTempMod(v3s16 p, NodeMod mod, bool *changed=NULL);
-       v3s16 clearTempMod(v3s16 p, bool *changed=NULL);
+       bool setTempMod(v3s16 p, NodeMod mod,
+                       core::map<v3s16, MapBlock*> *affected_blocks=NULL);
+       bool clearTempMod(v3s16 p,
+                       core::map<v3s16, MapBlock*> *affected_blocks=NULL);
        // Efficient implementation needs a cache of TempMods
        //void clearTempMods();