]> git.lizzy.rs Git - minetest.git/blobdiff - src/server/player_sao.cpp
Move f1000 sanitizing to the places that still use this type
[minetest.git] / src / server / player_sao.cpp
index c5f6d0a247108a608e0b193207ad0928dd72b614..a58a0397f0bb70b24c5fd9db99ace3127efb5523 100644 (file)
@@ -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);