mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-06-28 06:40:16 +02:00
18
include/db.h
18
include/db.h
@ -20,24 +20,18 @@ public:
|
||||
BlockPos(int16_t x, int16_t y, int16_t z) : x(x), y(y), z(z) {}
|
||||
bool operator < (const BlockPos &p) const
|
||||
{
|
||||
if (z > p.z) {
|
||||
if (z > p.z)
|
||||
return true;
|
||||
}
|
||||
if (z < p.z) {
|
||||
if (z < p.z)
|
||||
return false;
|
||||
}
|
||||
if (y > p.y) {
|
||||
if (y > p.y)
|
||||
return true;
|
||||
}
|
||||
if (y < p.y) {
|
||||
if (y < p.y)
|
||||
return false;
|
||||
}
|
||||
if (x > p.x) {
|
||||
if (x > p.x)
|
||||
return true;
|
||||
}
|
||||
if (x < p.x) {
|
||||
if (x < p.x)
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user