mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove a few unused functions reported by callcatcher (#11658)
This commit is contained in:
parent
6de8d77e17
commit
ecc6f4ba25
24 changed files with 6 additions and 799 deletions
|
@ -218,31 +218,6 @@ void MapBlock::expireDayNightDiff()
|
|||
m_day_night_differs_expired = true;
|
||||
}
|
||||
|
||||
s16 MapBlock::getGroundLevel(v2s16 p2d)
|
||||
{
|
||||
if(isDummy())
|
||||
return -3;
|
||||
try
|
||||
{
|
||||
s16 y = MAP_BLOCKSIZE-1;
|
||||
for(; y>=0; y--)
|
||||
{
|
||||
MapNode n = getNodeRef(p2d.X, y, p2d.Y);
|
||||
if (m_gamedef->ndef()->get(n).walkable) {
|
||||
if(y == MAP_BLOCKSIZE-1)
|
||||
return -2;
|
||||
|
||||
return y;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
catch(InvalidPositionException &e)
|
||||
{
|
||||
return -3;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Serialization
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue