mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Remove a few unused functions reported by callcatcher (#11658)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user