mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Code modernization: src/m* (part 3)
* empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove some unused headers in some cpp variable
This commit is contained in:
parent
b5f7249a7e
commit
d382483fa7
11 changed files with 20 additions and 31 deletions
|
@ -455,7 +455,7 @@ void transformNodeBox(const MapNode &n, const NodeBox &nodebox,
|
|||
}
|
||||
else // NODEBOX_REGULAR
|
||||
{
|
||||
boxes.push_back(aabb3f(-BS/2,-BS/2,-BS/2,BS/2,BS/2,BS/2));
|
||||
boxes.emplace_back(-BS/2,-BS/2,-BS/2,BS/2,BS/2,BS/2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -764,7 +764,7 @@ void MapNode::deSerializeBulk(std::istream &is, int version,
|
|||
/*
|
||||
Legacy serialization
|
||||
*/
|
||||
void MapNode::deSerialize_pre22(u8 *source, u8 version)
|
||||
void MapNode::deSerialize_pre22(const u8 *source, u8 version)
|
||||
{
|
||||
if(version <= 1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue