mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Large increase in performance
This commit is contained in:
parent
03beb597c2
commit
8621e6de5d
2 changed files with 10 additions and 9 deletions
|
@ -180,7 +180,9 @@ void VoxelManipulator::addArea(const VoxelArea &area)
|
|||
dstream<<std::endl;*/
|
||||
|
||||
// Allocate and clear new data
|
||||
MapNode *new_data = new MapNode[new_size];
|
||||
// FIXME: UGLY KLUDGE because MapNode default constructor is FUBAR; it
|
||||
// initialises data that is going to be overwritten anyway
|
||||
MapNode *new_data = (MapNode*)new char[new_size * sizeof (*new_data)];
|
||||
assert(new_data);
|
||||
u8 *new_flags = new u8[new_size];
|
||||
assert(new_flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue