From de1c28279bebbbd266e5c3020a38274e20cebb5c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 13:59:36 +0300 Subject: Add eathena defines into actortype enum. --- src/gui/popups/popupmenu.cpp | 3 ++- src/gui/viewport.cpp | 8 ++++++-- src/gui/windows/minimap.cpp | 6 ++++-- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 5ef07eb69..a458cf17d 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -307,6 +307,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) break; } +#ifdef EATHENA_SUPPORT case ActorType::Mercenary: // TRANSLATORS: popup menu item // TRANSLATORS: Mercenary move to master @@ -355,7 +356,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) mBrowserBox->addRow("##3---"); } break; - +#endif case ActorType::Avatar: case ActorType::Unknown: case ActorType::FloorItem: diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 2871bcb65..fd9166c33 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -777,10 +777,12 @@ void Viewport::mouseMoved(MouseEvent &event) if (mHoverBeing && (type == ActorType::Player || type == ActorType::Npc +#ifdef EATHENA_SUPPORT || type == ActorType::Homunculus || type == ActorType::Mercenary - || type == ActorType::LocalPet - || type == ActorType::Pet)) + || type == ActorType::Pet +#endif + || type == ActorType::LocalPet)) { popupManager->hideTextPopup(); if (mShowBeingPopup && beingPopup) @@ -837,9 +839,11 @@ void Viewport::mouseMoved(MouseEvent &event) case ActorType::Monster: case ActorType::Portal: case ActorType::LocalPet: +#ifdef EATHENA_SUPPORT case ActorType::Pet: case ActorType::Mercenary: case ActorType::Homunculus: +#endif gui->setCursorType(mHoverBeing->getHoverCursor()); break; diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 8fcb175ef..64c69b1e1 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -332,10 +332,12 @@ void Minimap::draw(Graphics *graphics) break; case ActorType::LocalPet: +#ifdef EATHENA_SUPPORT case ActorType::Pet: +#endif type = UserPalette::PET; break; - +#ifdef EATHENA_SUPPORT case ActorType::Mercenary: type = UserPalette::MERCENARY; break; @@ -343,7 +345,7 @@ void Minimap::draw(Graphics *graphics) case ActorType::Homunculus: type = UserPalette::HOMUNCULUS; break; - +#endif case ActorType::Avatar: case ActorType::Unknown: case ActorType::Player: -- cgit v1.2.3-70-g09d2