diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-19 18:29:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-19 18:29:03 +0300 |
commit | 7b6b389fe156b8ff1fc1f35ee776a2e65f160921 (patch) | |
tree | 81e893b9e57ff483492df3dd4b645157a02173b3 /src/gui/viewport.cpp | |
parent | f3fdd048e6265ab2c6e88ddff21dffd9409c03db (diff) | |
download | manaplus-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.gz manaplus-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.bz2 manaplus-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.tar.xz manaplus-7b6b389fe156b8ff1fc1f35ee776a2e65f160921.zip |
Move mapitemtype into separate file.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index b6d805b11..fbe056d2a 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -28,6 +28,8 @@ #include "sdlshared.h" #include "textmanager.h" +#include "resources/mapitemtype.h" + #include "resources/map/map.h" #include "resources/map/mapitem.h" #include "resources/map/maptype.h" @@ -928,7 +930,7 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED) / mMap->getTileHeight(); mHoverSign = specialLayer->getTile(mouseTileX, mouseTileY); - if (mHoverSign && mHoverSign->getType() != MapItem::EMPTY) + if (mHoverSign && mHoverSign->getType() != MapItemType::EMPTY) { if (!mHoverSign->getComment().empty()) { |