diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-03 18:08:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-03 18:08:05 +0300 |
commit | 0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac (patch) | |
tree | 600aba18b3c90967561ec3ed83f606266a99eff8 /src/resources/map/map.cpp | |
parent | bcd76117e26e72ed74f9b8c2856a7128e1c27441 (diff) | |
download | manaverse-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.gz manaverse-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.bz2 manaverse-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.tar.xz manaverse-0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac.zip |
Convert MapType enum into strong typed enum.
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 6ccc7b7a4..7bad7ee3d 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -550,8 +550,9 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) }\ void Map::drawCollision(Graphics *const graphics, - const int scrollX, const int scrollY, - const MapType::MapType drawFlags) const + const int scrollX, + const int scrollY, + const MapTypeT drawFlags) const { const int endPixelY = graphics->mHeight + scrollY + mTileHeight - 1; int startX = scrollX / mTileWidth; @@ -1591,7 +1592,7 @@ void Map::addAnimation(const int gid, TileAnimation *const animation) mTileAnimations[gid] = animation; } -void Map::setDrawLayersFlags(const MapType::MapType &n) +void Map::setDrawLayersFlags(const MapTypeT &n) { mDrawLayersFlags = n; if (mDrawLayersFlags == MapType::SPECIAL3 |