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:
parent
cb130d9158
commit
2915bd5518
10 changed files with 38 additions and 40 deletions
|
@ -64,11 +64,7 @@ void MeshMakeData::fill(u32 daynight_ratio, MapBlock *block)
|
|||
*/
|
||||
|
||||
// Get map
|
||||
NodeContainer *parentcontainer = block->getParent();
|
||||
// This will only work if the parent is the map
|
||||
assert(parentcontainer->nodeContainerId() == NODECONTAINER_ID_MAP);
|
||||
// OK, we have the map!
|
||||
Map *map = (Map*)parentcontainer;
|
||||
Map *map = block->getParent();
|
||||
|
||||
for(u16 i=0; i<6; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue