summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-16 08:31:33 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-16 16:50:38 +0200
commit5fce673a569747960dbe5befec8e2c42b87ce7f6 (patch)
treed331acca84447acb2482c3c8f7af499f0b9c03e6 /src/mapnode.h
parent708f1c336ef8214e380791b69213a3e3ddd873e2 (diff)
downloadminetest-5fce673a569747960dbe5befec8e2c42b87ce7f6.tar.gz
minetest-5fce673a569747960dbe5befec8e2c42b87ce7f6.tar.bz2
minetest-5fce673a569747960dbe5befec8e2c42b87ce7f6.zip
Use defines for liquid levels
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 3101a9fc1..77f6b321f 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -424,6 +424,10 @@ enum LightBank
#define LIQUID_LEVEL_MASK 0x07
#define LIQUID_FLOW_DOWN_MASK 0x08
+/* maximum amount of liquid in a block */
+#define LIQUID_LEVEL_MAX LIQUID_LEVEL_MASK
+#define LIQUID_LEVEL_SOURCE (LIQUID_LEVEL_MAX+1)
+
/*
This is the stuff what the whole world consists of.
*/