From 7b6b389fe156b8ff1fc1f35ee776a2e65f160921 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 May 2014 18:29:03 +0300 Subject: Move mapitemtype into separate file. --- src/gui/popups/popupmenu.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 7e9925039..00cae3ee3 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -76,6 +76,7 @@ #include "net/tradehandler.h" #include "resources/iteminfo.h" +#include "resources/mapitemtype.h" #include "resources/skillconsts.h" #include "resources/map/map.h" @@ -1356,11 +1357,11 @@ void PopupMenu::handleLink(const std::string &link, if (specialLayer) { const bool isHome = (mMapItem->getType() - == static_cast(MapItem::HOME)); + == static_cast(MapItemType::HOME)); const int x = static_cast(mMapItem->getX()); const int y = static_cast(mMapItem->getY()); specialLayer->setTile(x, y, - static_cast(MapItem::EMPTY)); + static_cast(MapItemType::EMPTY)); if (socialWindow) socialWindow->removePortal(x, y); if (isHome && player_node) @@ -2284,7 +2285,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, } switch (type) { - case MapItem::ATTACK: + case MapItemType::ATTACK: { const int idx = actorManager->getAttackMobIndex(name); const int size = actorManager->getAttackMobsSize(); @@ -2302,7 +2303,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, } break; } - case MapItem::PRIORITY: + case MapItemType::PRIORITY: { const int idx = actorManager-> getPriorityAttackMobIndex(name); @@ -2321,7 +2322,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, } break; } - case MapItem::IGNORE_: + case MapItemType::IGNORE_: break; default: break; -- cgit v1.2.3-70-g09d2