Fix d_a_npc_md inline usage

This commit is contained in:
LagoLunatic
2026-05-22 18:43:02 -04:00
parent 95fac0fd63
commit 47e01ede22
12 changed files with 91 additions and 88 deletions
+5
View File
@@ -57,8 +57,12 @@ template <>
struct TVec3<s16> : public SVec {
TVec3() {}
TVec3(const SVec& b) { set(b); }
template<typename s16>
TVec3(s16 x, s16 y, s16 z) { set(x, y, z); }
TVec3(int x, int y, int z) { set(x, y, z); }
void set(const SVec& vec) {
x = vec.x;
y = vec.y;
@@ -82,6 +86,7 @@ template <>
struct TVec3<f32> : public Vec {
TVec3() {}
template<typename f32>
TVec3(f32 x, f32 y, f32 z) { set(x, y, z); }
TVec3(const Vec& b) { set(b); }
+2 -2
View File
@@ -20,7 +20,7 @@ struct SMatrix34C<f32> {
typedef f32 ArrType[4];
void set(const ArrType* src) { JMath::gekko_ps_copy12((f32*)data, (f32*)src); }
operator ArrType*() { return data; }
operator ArrType*() const { return (ArrType*)data; }
operator const ArrType*() const { return data; }
};
@@ -37,4 +37,4 @@ typedef TPosition3<TRotation3<TMatrix34<SMatrix34C<f32> > > > TPosition3f32;
} // namespace JGeometry
#endif
#endif