diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:44:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:44:42 +0100 |
commit | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch) | |
tree | c980d614fec4a5495798be3e79e033229062c3cd /src/mapsector.h | |
parent | 28f6a79706b088c37268a59d90878220dc4ef9c7 (diff) | |
parent | 3af10766fd2b58b068e970266724d7eb10e9316b (diff) | |
download | dragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/mapsector.h')
-rw-r--r-- | src/mapsector.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/mapsector.h b/src/mapsector.h index dede364f6..ff96be498 100644 --- a/src/mapsector.h +++ b/src/mapsector.h @@ -39,20 +39,16 @@ class IGameDef; class MapSector { public: - MapSector(Map *parent, v2s16 pos, IGameDef *gamedef); virtual ~MapSector(); void deleteBlocks(); - v2s16 getPos() - { - return m_pos; - } + v2s16 getPos() { return m_pos; } - MapBlock * getBlockNoCreateNoEx(s16 y); - MapBlock * createBlankBlockNoInsert(s16 y); - MapBlock * createBlankBlock(s16 y); + MapBlock *getBlockNoCreateNoEx(s16 y); + MapBlock *createBlankBlockNoInsert(s16 y); + MapBlock *createBlankBlock(s16 y); void insertBlock(MapBlock *block); @@ -63,9 +59,8 @@ public: bool empty() const { return m_blocks.empty(); } protected: - // The pile of MapBlocks - std::unordered_map<s16, MapBlock*> m_blocks; + std::unordered_map<s16, MapBlock *> m_blocks; Map *m_parent; // Position on parent (in MapBlock widths) @@ -82,5 +77,4 @@ protected: Private methods */ MapBlock *getBlockBuffered(s16 y); - }; |