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/gui/viewport.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/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 5c0c7328c..7bb6e2eef 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -228,7 +228,7 @@ void Viewport::draw(Graphics *graphics) // Draw tiles and sprites mMap->draw(graphics, mPixelViewX, mPixelViewY); - const MapType::MapType drawType = settings.mapDrawType; + const MapTypeT drawType = settings.mapDrawType; if (drawType != MapType::NORMAL) { if (drawType != MapType::SPECIAL4) @@ -874,7 +874,7 @@ void Viewport::mouseMoved(MouseEvent &event) void Viewport::toggleMapDrawType() { - settings.mapDrawType = static_cast<MapType::MapType>( + settings.mapDrawType = static_cast<MapTypeT>( static_cast<int>(settings.mapDrawType) + 1); if (settings.mapDrawType > MapType::BLACKWHITE) settings.mapDrawType = MapType::NORMAL; |