summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
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)