From c98d192af4daa48a4c27cfa3225e22e89f329525 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Feb 2016 15:03:30 +0300 Subject: Fix compilation with different flags. --- src/gui/viewport.cpp | 8 ++++++-- src/gui/widgets/tabs/setup_video.cpp | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui') 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))) diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp index 298205fca..591093bc8 100644 --- a/src/gui/widgets/tabs/setup_video.cpp +++ b/src/gui/widgets/tabs/setup_video.cpp @@ -22,6 +22,8 @@ #include "gui/widgets/tabs/setup_video.h" +#include "configuration.h" + #include "gui/windowmanager.h" #include "gui/windows/okdialog.h" -- cgit v1.2.3-70-g09d2