summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-14 23:38:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-14 23:40:46 +0300
commit015515ba20b66195840afd1c0c074f0729995a2d (patch)
treec1aaf12666cc031dd15e02b74dd0c1a5cc57a74b /src/localplayer.cpp
parent1f67b67fcd391d5658e46f40756720199bd0004b (diff)
downloadmanaplus-015515ba20b66195840afd1c0c074f0729995a2d.tar.gz
manaplus-015515ba20b66195840afd1c0c074f0729995a2d.tar.bz2
manaplus-015515ba20b66195840afd1c0c074f0729995a2d.tar.xz
manaplus-015515ba20b66195840afd1c0c074f0729995a2d.zip
Add some android fixes.
Partial impliment option to enable/disable mumble support.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 1d4f75c37..bc201359a 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -209,8 +209,10 @@ LocalPlayer::~LocalPlayer()
void LocalPlayer::logic()
{
+ #ifdef USE_MUMBLE
if (mumbleManager)
mumbleManager->setPos(mX, mY, mDirection);
+ #endif
// Actions are allowed once per second
if (get_elapsed_time(mLastAction) >= 1000)
@@ -370,8 +372,10 @@ void LocalPlayer::setAction(const Action &action, const int attackType)
}
Being::setAction(action, attackType);
+ #ifdef USE_MUMBLE
if (mumbleManager)
mumbleManager->setAction(static_cast<int>(action));
+ #endif
}
void LocalPlayer::setGMLevel(const int level)