summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-12 15:03:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-12 15:03:30 +0300
commitc98d192af4daa48a4c27cfa3225e22e89f329525 (patch)
treea918f5e75d39034862ee8058f3de0eeddbc64795 /src/gui/viewport.cpp
parent35b4102b8be747762f3a183e11f15239a21ae074 (diff)
downloadplus-c98d192af4daa48a4c27cfa3225e22e89f329525.tar.gz
plus-c98d192af4daa48a4c27cfa3225e22e89f329525.tar.bz2
plus-c98d192af4daa48a4c27cfa3225e22e89f329525.tar.xz
plus-c98d192af4daa48a4c27cfa3225e22e89f329525.zip
Fix compilation with different flags.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 40f32457c..e7162f399 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -452,8 +452,12 @@ bool Viewport::leftMouseAction()
}
else if (!stopAttack &&
(type == ActorType::Monster ||
- type == ActorType::Npc ||
- type == ActorType::SkillUnit))
+ type == ActorType::Npc
+#ifdef EATHENA_SUPPORT
+ ||
+ type == ActorType::SkillUnit
+#endif
+ ))
{
if ((localPlayer->withinAttackRange(mHoverBeing) ||
inputManager.isActionActive(InputAction::ATTACK)))