Swapped std::map for array in SimpleVolume.

This commit is contained in:
David Williams
2011-04-30 12:16:33 +01:00
parent 20a77ebf5b
commit 0e27b2fb50
2 changed files with 30 additions and 8 deletions

View File

@ -186,7 +186,9 @@ private:
Block* getUncompressedBlock(int32_t uBlockX, int32_t uBlockY, int32_t uBlockZ) const;
//The block data
mutable std::map<Vector3DInt32, Block > m_pBlocks;
//mutable std::map<Vector3DInt32, Block > m_pBlocks;
Block* m_pBlocks;
//We don't store an actual Block for the border, just the uncompressed data. This is partly because the border
//block does not have a position (so can't be passed to getUncompressedBlock()) and partly because there's a