mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove dead code (#10845)
This commit is contained in:
parent
67aa75d444
commit
4c76239818
31 changed files with 8 additions and 331 deletions
|
@ -396,14 +396,7 @@ int EmergeManager::getGroundLevelAtPoint(v2s16 p)
|
|||
// TODO(hmmmm): Move this to ServerMap
|
||||
bool EmergeManager::isBlockUnderground(v3s16 blockpos)
|
||||
{
|
||||
#if 0
|
||||
v2s16 p = v2s16((blockpos.X * MAP_BLOCKSIZE) + MAP_BLOCKSIZE / 2,
|
||||
(blockpos.Y * MAP_BLOCKSIZE) + MAP_BLOCKSIZE / 2);
|
||||
int ground_level = getGroundLevelAtPoint(p);
|
||||
return blockpos.Y * (MAP_BLOCKSIZE + 1) <= min(water_level, ground_level);
|
||||
#endif
|
||||
|
||||
// Use a simple heuristic; the above method is wildly inaccurate anyway.
|
||||
// Use a simple heuristic
|
||||
return blockpos.Y * (MAP_BLOCKSIZE + 1) <= mgparams->water_level;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue