aboutsummaryrefslogtreecommitdiff
path: root/src/server/player_sao.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-06-08 19:33:46 +0200
committersfan5 <sfan5@live.de>2022-07-14 20:55:45 +0200
commit137eef6590205b7bcdf5273221bc22c17b218f6e (patch)
tree8933aefd5ec6fb351bdf54727f65e379f82ae37c /src/server/player_sao.cpp
parentb204655081f495c9d45fdf7d49d203e910dafc7a (diff)
downloadminetest-137eef6590205b7bcdf5273221bc22c17b218f6e.tar.xz
Move f1000 sanitizing to the places that still use this type
Diffstat (limited to 'src/server/player_sao.cpp')
-rw-r--r--src/server/player_sao.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/server/player_sao.cpp b/src/server/player_sao.cpp
index c5f6d0a24..a58a0397f 100644
--- a/src/server/player_sao.cpp
+++ b/src/server/player_sao.cpp
@@ -321,12 +321,6 @@ std::string PlayerSAO::generateUpdatePhysicsOverrideCommand() const
void PlayerSAO::setBasePosition(v3f position)
{
- // It's not entirely clear which parts of the network protocol still use
- // v3f1000, but the script API enforces its bound on all float vectors
- // (maybe it shouldn't?). For that reason we need to make sure the position
- // isn't ever set to values that fail this restriction.
- clampToF1000(position);
-
if (m_player && position != m_base_position)
m_player->setDirty(true);