aboutsummaryrefslogtreecommitdiff
path: root/src/client/content_cao.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-28 16:47:27 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-28 16:47:27 +0200
commit85574cb53c44610b230cb7ae69a5cc0b17bcf2f0 (patch)
treedc3be4950e1fb44f2a2c082e238333adf2808537 /src/client/content_cao.cpp
parentf7a042223f9c82c7764c0df3a3531bda04e9ad64 (diff)
downloaddragonfireclient-85574cb53c44610b230cb7ae69a5cc0b17bcf2f0.tar.xz
Improved Freecam
Diffstat (limited to 'src/client/content_cao.cpp')
-rw-r--r--src/client/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index 5f60c3375..2a3225b7a 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -943,7 +943,7 @@ void GenericCAO::updateNodePos()
void GenericCAO::step(float dtime, ClientEnvironment *env)
{
// Handle model animations and update positions instantly to prevent lags
- if (m_is_local_player) {
+ if (m_is_local_player && ! g_settings->getBool("freecam")) {
LocalPlayer *player = m_env->getLocalPlayer();
m_position = player->getPosition();
pos_translator.val_current = m_position;