summaryrefslogtreecommitdiff
path: root/src/voxel.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-03 13:48:17 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-03 13:48:17 +0200
commit71dbee43d005ce39fa17834cc34fe4233945e24f (patch)
treea96201be57f8e6bf49a85bb474ad12a7d1b90127 /src/voxel.h
parent9b1b57a52390ecc98c27b2f923052511c387ba3d (diff)
downloadminetest-71dbee43d005ce39fa17834cc34fe4233945e24f.tar.gz
minetest-71dbee43d005ce39fa17834cc34fe4233945e24f.tar.bz2
minetest-71dbee43d005ce39fa17834cc34fe4233945e24f.zip
some generation-time mud flow tweaking
Diffstat (limited to 'src/voxel.h')
-rw-r--r--src/voxel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/voxel.h b/src/voxel.h
index 89333159c..0cffb16b5 100644
--- a/src/voxel.h
+++ b/src/voxel.h
@@ -152,6 +152,10 @@ public:
p.Z >= MinEdge.Z && p.Z <= MaxEdge.Z
);
}
+ bool contains(s32 i) const
+ {
+ return (i >= 0 && i < getVolume());
+ }
bool operator==(const VoxelArea &other) const
{
return (MinEdge == other.MinEdge