From 71dbee43d005ce39fa17834cc34fe4233945e24f Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 3 Feb 2011 13:48:17 +0200 Subject: some generation-time mud flow tweaking --- src/voxel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/voxel.h') 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 -- cgit v1.2.3