diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-21 02:25:47 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-21 02:25:47 +0200 |
commit | 3b0bff2f743a3abf100368f94efafa7c2843a9b7 (patch) | |
tree | a81464f28cb929d221706e5790c753ed42cc8315 /src/map.h | |
parent | d5a78c12530df800f8182f7012cd16237a7ebafe (diff) | |
download | minetest-3b0bff2f743a3abf100368f94efafa7c2843a9b7.tar.gz minetest-3b0bff2f743a3abf100368f94efafa7c2843a9b7.tar.bz2 minetest-3b0bff2f743a3abf100368f94efafa7c2843a9b7.zip |
Cracking blocks while digging
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -35,7 +35,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common_irrlicht.h" #include "heightmap.h" -#include "loadstatus.h" #include "mapnode.h" #include "mapblock.h" #include "mapsector.h" @@ -593,8 +592,15 @@ public: void renderMap(video::IVideoDriver* driver, s32 pass); - // Update master heightmap mesh - void updateMesh(); + /* + Methods for setting temporary modifications to nodes for + drawing. + Return value is position of changed block. + */ + v3s16 setTempMod(v3s16 p, NodeMod mod); + v3s16 clearTempMod(v3s16 p); + // Efficient implementation needs a cache of TempMods + //void clearTempMods(); // For debug printing virtual void PrintInfo(std::ostream &out); |