aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-04 22:59:43 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-04 22:59:43 +0200
commitee88f4b94f180faa2b44ff016381a0fe69426d88 (patch)
treed4761caf0aa753785afb776fd2e3931bcb21e8a3 /src/client/client.cpp
parentc36ff3edb1ee83eaff61490355ce58679ab687e3 (diff)
downloaddragonfireclient-ee88f4b94f180faa2b44ff016381a0fe69426d88.tar.xz
Improved Tracers
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r--src/client/client.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index bbc32c6d4..d3e7a278d 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -1289,9 +1289,6 @@ void Client::sendReady()
void Client::sendPlayerPos(v3f pos)
{
- if (g_settings->getBool("freecam"))
- return;
-
LocalPlayer *player = m_env.getLocalPlayer();
if (!player)
return;
@@ -1309,7 +1306,7 @@ void Client::sendPlayerPos(v3f pos)
if (
player->last_position == pos &&
- player->last_speed == player->getSpeed() &&
+ player->last_speed == player->getLegitSpeed() &&
player->last_pitch == player->getPitch() &&
player->last_yaw == player->getYaw() &&
player->last_keyPressed == player->keyPressed &&
@@ -1318,7 +1315,7 @@ void Client::sendPlayerPos(v3f pos)
return;
player->last_position = pos;
- player->last_speed = player->getSpeed();
+ player->last_speed = player->getLegitSpeed();
player->last_pitch = player->getPitch();
player->last_yaw = player->getYaw();
player->last_keyPressed = player->keyPressed;
@@ -1337,7 +1334,7 @@ void Client::sendPlayerPos()
LocalPlayer *player = m_env.getLocalPlayer();
if (!player)
return;
- sendPlayerPos(player->getPosition());
+ sendPlayerPos(player->getLegitPosition());
}
void Client::removeNode(v3s16 p)
@@ -1678,7 +1675,7 @@ void Client::updateAllMapBlocks()
MapBlockVect blocks;
sector->getBlocks(blocks);
for (MapBlock *block : blocks) {
- addUpdateMeshTask(block->getPos(), false, true);
+ addUpdateMeshTask(block->getPos(), false, false);
}
}
}