diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-19 18:29:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-19 18:29:03 +0300 |
commit | 7b6b389fe156b8ff1fc1f35ee776a2e65f160921 (patch) | |
tree | 81e893b9e57ff483492df3dd4b645157a02173b3 /src/resources/map/speciallayer.cpp | |
parent | f3fdd048e6265ab2c6e88ddff21dffd9409c03db (diff) | |
download | manaverse-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.gz manaverse-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.bz2 manaverse-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.xz manaverse-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.zip |
Move mapitemtype into separate file.
Diffstat (limited to 'src/resources/map/speciallayer.cpp')
-rw-r--r-- | src/resources/map/speciallayer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp index 1c4662797..bd54affbd 100644 --- a/src/resources/map/speciallayer.cpp +++ b/src/resources/map/speciallayer.cpp @@ -20,6 +20,8 @@ #include "resources/map/speciallayer.h" +#include "resources/mapitemtype.h" + #include "resources/map/mapconsts.h" #include "resources/map/mapitem.h" @@ -96,9 +98,9 @@ void SpecialLayer::addRoad(const Path &road) const Position &pos = (*i); MapItem *const item = getTile(pos.x, pos.y); if (!item) - setTile(pos.x, pos.y, new MapItem(MapItem::ROAD)); + setTile(pos.x, pos.y, new MapItem(MapItemType::ROAD)); else - item->setType(MapItem::ROAD); + item->setType(MapItemType::ROAD); } } @@ -111,7 +113,7 @@ void SpecialLayer::clean() const { MapItem *const item = mTiles[f]; if (item) - item->setType(MapItem::EMPTY); + item->setType(MapItemType::EMPTY); } } |