1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

more reorganizing of map code

This commit is contained in:
Perttu Ahola 2011-06-26 01:31:43 +03:00
parent cb130d9158
commit 2915bd5518
10 changed files with 38 additions and 40 deletions

View file

@ -126,7 +126,9 @@ MapSector * Map::getSectorNoGenerate(v2s16 p)
MapBlock * Map::getBlockNoCreateNoEx(v3s16 p3d)
{
v2s16 p2d(p3d.X, p3d.Z);
MapSector * sector = getSectorNoGenerate(p2d);
MapSector * sector = getSectorNoGenerateNoEx(p2d);
if(sector == NULL)
return NULL;
MapBlock *block = sector->getBlockNoCreateNoEx(p3d.Y);
return block;
}