diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 17:14:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 17:14:27 +0300 |
commit | 2f2b3da534ad7d19afd96cdc92d04052aa63f567 (patch) | |
tree | c275ba32e0a08e332c16f9d892ca936eac9ce750 /src/gui/viewport.cpp | |
parent | 10cf17f8d83d2d925641f722acc004828dba3094 (diff) | |
download | mv-2f2b3da534ad7d19afd96cdc92d04052aa63f567.tar.gz mv-2f2b3da534ad7d19afd96cdc92d04052aa63f567.tar.bz2 mv-2f2b3da534ad7d19afd96cdc92d04052aa63f567.tar.xz mv-2f2b3da534ad7d19afd96cdc92d04052aa63f567.zip |
Move maptype into separate file.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index d4e13559a..ec9f5bac3 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -30,6 +30,7 @@ #include "resources/map/mapitem.h" #include "resources/map/maplayer.h" +#include "resources/map/maptype.h" #include "resources/map/speciallayer.h" #include "being/localplayer.h" @@ -75,7 +76,7 @@ Viewport::Viewport() : mMousePressY(0), mPixelViewX(0), mPixelViewY(0), - mShowDebugPath(Map::MAP_NORMAL), + mShowDebugPath(MapType::NORMAL), mCameraMode(0), mLocalWalkTime(-1), mCameraRelativeX(0), @@ -237,7 +238,7 @@ void Viewport::draw(Graphics *graphics) { mMap->drawCollision(graphics, mPixelViewX, mPixelViewY, mShowDebugPath); - if (mShowDebugPath == Map::MAP_DEBUG) + if (mShowDebugPath == MapType::DEBUG) drawDebugPath(graphics); } @@ -989,8 +990,8 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED) void Viewport::toggleDebugPath() { mShowDebugPath++; - if (mShowDebugPath > Map::MAP_BLACKWHITE) - mShowDebugPath = Map::MAP_NORMAL; + if (mShowDebugPath > MapType::BLACKWHITE) + mShowDebugPath = MapType::NORMAL; if (mMap) mMap->setDebugFlags(mShowDebugPath); } |