summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.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/widgets/avatarlistbox.cpp
parentf74e2b6c8b019bceb02e25aa53e988918fd5d278 (diff)
downloadmanaverse-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.gz
manaverse-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.bz2
manaverse-f2013e1e567d2a91be8b696cdd1db3edd5906f99.tar.xz
manaverse-f2013e1e567d2a91be8b696cdd1db3edd5906f99.zip
Add some missing tmwa defines. Fix compilation error without tmwa support.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 9919a10d3..e4c5d3e93 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -613,6 +613,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
const MouseButtonT eventButton = event.getButton();
if (eventButton == MouseButton::LEFT)
{
+#ifdef TMWA_SUPPORT
if (type == MapItemType::EMPTY)
{
const Being *const being = actorManager->findBeingByName(
@@ -621,6 +622,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
actorManager->heal(being);
}
else
+#endif // TMWA_SUPPORT
{
localPlayer->navigateTo(ava->getX(), ava->getY());
}