summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-04 01:58:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-04 01:58:51 +0300
commitf2013e1e567d2a91be8b696cdd1db3edd5906f99 (patch)
tree20d0288ea17f2da33b4887f0e8734063ca7134a5 /src/gui/viewport.cpp
parentf74e2b6c8b019bceb02e25aa53e988918fd5d278 (diff)
downloadplus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.gz
plus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.bz2
plus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.xz
plus-f2013e1e567d2a91be8b696cdd1db3edd5906f99.zip
Add some missing tmwa defines. Fix compilation error without tmwa support.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 3a61e0f65..e476e4b38 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -440,8 +440,11 @@ bool Viewport::leftMouseAction()
validateSpeed();
if (actorManager)
{
+#ifdef TMWA_SUPPORT
if (localPlayer != mHoverBeing || mSelfMouseHeal)
actorManager->heal(mHoverBeing);
+#endif // TMWA_SUPPORT
+
if (localPlayer == mHoverBeing && mHoverItem)
localPlayer->pickUp(mHoverItem);
return true;
@@ -484,7 +487,9 @@ bool Viewport::leftMouseAction()
case ActorType::Elemental:
break;
case ActorType::Unknown:
+#ifdef TMWA_SUPPORT
case ActorType::LocalPet:
+#endif
case ActorType::Avatar:
default:
reportAlways("Left click on unknown actor type: %d",