bool empty() const { return m_blocks.empty(); }
// Always false at the moment, because sector contains no metadata.
- bool differs_from_disk;
+ bool differs_from_disk = false;
protected:
// The pile of MapBlocks
- UNORDERED_MAP<s16, MapBlock*> m_blocks;
+ std::unordered_map<s16, MapBlock*> m_blocks;
Map *m_parent;
// Position on parent (in MapBlock widths)
IGameDef *m_gamedef;
// Last-used block is cached here for quicker access.
- // Be sure to set this to NULL when the cached block is deleted
- MapBlock *m_block_cache;
+ // Be sure to set this to nullptr when the cached block is deleted
+ MapBlock *m_block_cache = nullptr;
s16 m_block_cache_y;
/*