diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-03 00:46:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-03 13:17:37 +0300 |
commit | 8b2464a723f7039a3efbc0c7d2e883729b3fa7dd (patch) | |
tree | 0564c85d8f6301d8a0b916f37612e27788d82853 /src/resources/map/map.cpp | |
parent | 63054bddcc1a306787250209b03c04086b9b472f (diff) | |
download | ManaVerse-8b2464a723f7039a3efbc0c7d2e883729b3fa7dd.tar.gz ManaVerse-8b2464a723f7039a3efbc0c7d2e883729b3fa7dd.tar.bz2 ManaVerse-8b2464a723f7039a3efbc0c7d2e883729b3fa7dd.tar.xz ManaVerse-8b2464a723f7039a3efbc0c7d2e883729b3fa7dd.zip |
Fix some casts.
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 99344e0fd..f7f4b900f 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -497,7 +497,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) void Map::drawCollision(Graphics *const graphics, const int scrollX, const int scrollY, - const int debugFlags) const + const MapType::MapType drawFlags) const { const int endPixelY = graphics->mHeight + scrollY + mTileHeight - 1; int startX = scrollX / mTileWidth; @@ -514,7 +514,7 @@ void Map::drawCollision(Graphics *const graphics, if (endY > mHeight) endY = mHeight; - if (debugFlags < MapType::SPECIAL) + if (drawFlags < MapType::SPECIAL) { graphics->setColor(userPalette->getColorWithAlpha(UserPalette::NET)); graphics->drawNet( |