1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Move f1000 sanitizing to the places that still use this type

This commit is contained in:
sfan5 2022-06-08 19:33:46 +02:00
parent b204655081
commit 137eef6590
6 changed files with 8 additions and 17 deletions

View file

@ -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);
}