aboutsummaryrefslogtreecommitdiff
path: root/src/util/pointedthing.h
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-28 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-06-28 08:00:00 +0800
commit11c7849bdf53557bc327fee06bddbbf1e23c4512 (patch)
treea90dba953d7cc9584c979ad3b6772f55c58f42ed /src/util/pointedthing.h
parent53dd648c96b899b706f30de656896713d7e8ff08 (diff)
downloadhax-minetest-server-11c7849bdf53557bc327fee06bddbbf1e23c4512.tar.gz
hax-minetest-server-11c7849bdf53557bc327fee06bddbbf1e23c4512.zip
Hax's version of Minetest Server 5.6.0
Diffstat (limited to 'src/util/pointedthing.h')
-rw-r--r--src/util/pointedthing.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/pointedthing.h b/src/util/pointedthing.h
index 5b30ed031..68b183195 100644
--- a/src/util/pointedthing.h
+++ b/src/util/pointedthing.h
@@ -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);