mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
object ids are u16, not s16 (#12848)
This commit is contained in:
parent
f7ae70c3d9
commit
6b6f886bcd
2 changed files with 5 additions and 5 deletions
|
@ -61,7 +61,7 @@ struct PointedThing
|
|||
* Only valid if type is POINTEDTHING_OBJECT.
|
||||
* The ID of the object the ray hit.
|
||||
*/
|
||||
s16 object_id = -1;
|
||||
u16 object_id = 0;
|
||||
/*!
|
||||
* Only valid if type isn't POINTEDTHING_NONE.
|
||||
* First intersection point of the ray and the nodebox in irrlicht
|
||||
|
@ -93,7 +93,7 @@ struct PointedThing
|
|||
const v3s16 &real_under, const v3f &point, const v3s16 &normal,
|
||||
u16 box_id, f32 distSq);
|
||||
//! Constructor for POINTEDTHING_OBJECT
|
||||
PointedThing(s16 id, const v3f &point, const v3s16 &normal, f32 distSq);
|
||||
PointedThing(u16 id, const v3f &point, const v3s16 &normal, f32 distSq);
|
||||
std::string dump() const;
|
||||
void serialize(std::ostream &os) const;
|
||||
void deSerialize(std::istream &is);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue