diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 01:31:43 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 01:31:43 +0300 |
commit | 2915bd5518150955ed1581110527f4bb4adadfe8 (patch) | |
tree | 142947902c6ec80bbe36d949e4af6e7496c27906 /src/mapblock_mesh.cpp | |
parent | cb130d9158dc4e9c456d088d5e214b7d829ccc3a (diff) | |
download | minetest-2915bd5518150955ed1581110527f4bb4adadfe8.tar.gz minetest-2915bd5518150955ed1581110527f4bb4adadfe8.tar.bz2 minetest-2915bd5518150955ed1581110527f4bb4adadfe8.zip |
more reorganizing of map code
Diffstat (limited to 'src/mapblock_mesh.cpp')
-rw-r--r-- | src/mapblock_mesh.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp index d4921c2c5..447716d00 100644 --- a/src/mapblock_mesh.cpp +++ b/src/mapblock_mesh.cpp @@ -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++) { |