summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-07-28 17:11:59 +0400
committerproller <proller@github.com>2013-07-28 17:14:31 +0400
commit037e84d377e91f37026cb5814145bdceac135534 (patch)
tree4e74e3d60e797605353d2539d2b2fbc399b684a9 /src/mapnode.h
parent3aedfac9685c2d9ae8bac5a5b7e72e527f22c08d (diff)
downloadminetest-037e84d377e91f37026cb5814145bdceac135534.tar.gz
minetest-037e84d377e91f37026cb5814145bdceac135534.tar.bz2
minetest-037e84d377e91f37026cb5814145bdceac135534.zip
Better snow fall, finite liquid transform, leveled nodes api
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index fcff1707a..785537759 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -104,7 +104,7 @@ enum Rotation {
#define LIQUID_INFINITY_MASK 0x80 //0b10000000
// mask for param2, now as for liquid
-#define LEVELED_MASK 0x07
+#define LEVELED_MASK 0x3F
#define LEVELED_MAX LEVELED_MASK
/*
@@ -229,7 +229,9 @@ struct MapNode
/* Liquid helpers */
u8 getMaxLevel(INodeDefManager *nodemgr) const;
u8 getLevel(INodeDefManager *nodemgr) const;
+ u8 setLevel(INodeDefManager *nodemgr, s8 level = 1);
u8 addLevel(INodeDefManager *nodemgr, s8 add = 1);
+ void freezeMelt(INodeDefManager *nodemgr);
/*
Serialization functions