From 0a9826815fdf65c5c48c1cc78dde8ad43c47c4ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jun 2015 18:08:05 +0300 Subject: Convert MapType enum into strong typed enum. --- src/gui/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/viewport.cpp') 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( + settings.mapDrawType = static_cast( static_cast(settings.mapDrawType) + 1); if (settings.mapDrawType > MapType::BLACKWHITE) settings.mapDrawType = MapType::NORMAL; -- cgit v1.2.3-70-g09d2