mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
C++11 cleanup on constructors (#6000)
* C++11 cleanup on constructors dir script
This commit is contained in:
@@ -36,7 +36,7 @@ enum PointedThingType
|
||||
struct PointedThing
|
||||
{
|
||||
//! The type of the pointed object.
|
||||
PointedThingType type;
|
||||
PointedThingType type = POINTEDTHING_NOTHING;
|
||||
/*!
|
||||
* Only valid if type is POINTEDTHING_NODE.
|
||||
* The coordinates of the node which owns the
|
||||
@@ -74,9 +74,9 @@ struct PointedThing
|
||||
* Only valid if type is POINTEDTHING_OBJECT.
|
||||
* The ID of the object the ray hit.
|
||||
*/
|
||||
s16 object_id;
|
||||
s16 object_id = -1;
|
||||
|
||||
PointedThing();
|
||||
PointedThing() {};
|
||||
std::string dump() const;
|
||||
void serialize(std::ostream &os) const;
|
||||
void deSerialize(std::istream &is);
|
||||
|
Reference in New Issue
Block a user