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:
parent
b204655081
commit
137eef6590
6 changed files with 8 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue