summaryrefslogtreecommitdiff
path: root/src/voxel.cpp
diff options
context:
space:
mode:
authorunknown <gregory.currie@gmail.com>2015-01-13 23:23:31 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-01-13 23:24:32 +1000
commit5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7 (patch)
tree928cca01282922afd0518a0748964454d02952f4 /src/voxel.cpp
parentc0066a75cd567b4dd96ff3b38550e9b3a65a529c (diff)
downloadminetest-5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7.tar.gz
minetest-5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7.tar.bz2
minetest-5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7.zip
Add VoxelArea::hasEmptyExtent
Diffstat (limited to 'src/voxel.cpp')
-rw-r--r--src/voxel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voxel.cpp b/src/voxel.cpp
index 1299a5296..02da42459 100644
--- a/src/voxel.cpp
+++ b/src/voxel.cpp
@@ -139,7 +139,7 @@ void VoxelManipulator::print(std::ostream &o, INodeDefManager *ndef,
void VoxelManipulator::addArea(const VoxelArea &area)
{
// Cancel if requested area has zero volume
- if(area.getExtent() == v3s16(0,0,0))
+ if (area.hasEmptyExtent())
return;
// Cancel if m_area already contains the requested area
@@ -151,7 +151,7 @@ void VoxelManipulator::addArea(const VoxelArea &area)
// Calculate new area
VoxelArea new_area;
// New area is the requested area if m_area has zero volume
- if(m_area.getExtent() == v3s16(0,0,0))
+ if(m_area.hasEmptyExtent())
{
new_area = area;
}