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/staticobject.cpp | |
parent | b204655081f495c9d45fdf7d49d203e910dafc7a (diff) | |
download | minetest-137eef6590205b7bcdf5273221bc22c17b218f6e.tar.gz minetest-137eef6590205b7bcdf5273221bc22c17b218f6e.tar.bz2 minetest-137eef6590205b7bcdf5273221bc22c17b218f6e.zip |
Move f1000 sanitizing to the places that still use this type
Diffstat (limited to 'src/staticobject.cpp')
-rw-r--r-- | src/staticobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/staticobject.cpp b/src/staticobject.cpp index 1160ec68f..f92995d0b 100644 --- a/src/staticobject.cpp +++ b/src/staticobject.cpp @@ -28,12 +28,12 @@ StaticObject::StaticObject(const ServerActiveObject *s_obj, const v3f &pos_): s_obj->getStaticData(&data); } -void StaticObject::serialize(std::ostream &os) +void StaticObject::serialize(std::ostream &os) const { // type writeU8(os, type); // pos - writeV3F1000(os, pos); + writeV3F1000(os, clampToF1000(pos)); // data os<<serializeString16(data); } |