diff options
author | sfan5 <sfan5@live.de> | 2022-06-08 19:33:46 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-07-14 20:55:45 +0200 |
commit | 137eef6590205b7bcdf5273221bc22c17b218f6e (patch) | |
tree | 8933aefd5ec6fb351bdf54727f65e379f82ae37c /src/server/luaentity_sao.cpp | |
parent | b204655081f495c9d45fdf7d49d203e910dafc7a (diff) | |
download | minetest-137eef6590205b7bcdf5273221bc22c17b218f6e.tar.xz |
Move f1000 sanitizing to the places that still use this type
Diffstat (limited to 'src/server/luaentity_sao.cpp')
-rw-r--r-- | src/server/luaentity_sao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/luaentity_sao.cpp b/src/server/luaentity_sao.cpp index a0a8aede0..ab4a9e3f2 100644 --- a/src/server/luaentity_sao.cpp +++ b/src/server/luaentity_sao.cpp @@ -290,7 +290,7 @@ void LuaEntitySAO::getStaticData(std::string *result) const os<<serializeString32(m_init_state); } writeU16(os, m_hp); - writeV3F1000(os, m_velocity); + writeV3F1000(os, clampToF1000(m_velocity)); // yaw writeF1000(os, m_rotation.Y); |