c_lib, c_xyz, c_angle, c_bg_s_gnd_chk fix

This commit is contained in:
Jasper St. Pierre
2023-09-22 20:02:31 -07:00
parent c8292b3624
commit f2da02f2b9
6 changed files with 38 additions and 34 deletions
+3 -3
View File
@@ -326,7 +326,7 @@ void cSGlobe::Polar(cSPolar* csp) const {
}
/* 80254864-80254890 .text Invert__7cSGlobeFv */
cXyz cSGlobe::Norm() const {
cSGlobe glob(1.0f, mAzimuth, mInclination);
return glob.Xyz();
cSGlobe& cSGlobe::Invert() {
mRadius = -mRadius;
return Formal();
}
+1 -1
View File
@@ -10,5 +10,5 @@
cBgS_GndChk::cBgS_GndChk() {
m_pos = cXyz::Zero;
setActorPid(0xFFFFFFFF);
mFlags = 2;
mFlags = 3;
}
+1 -1
View File
@@ -366,7 +366,7 @@ s32 cLib_distanceAngleS(s16 x, s16 y) {
return abs(static_cast<s16>(x - y));
}
static Mtx mtx[10];
Mtx mtx[10];
Mtx* calc_mtx = mtx;
+4
View File
@@ -153,3 +153,7 @@ bool cXyz::isZero(void) const {
return fabsf(this->x) < 3.8146972e-06f && fabsf(this->y) < 3.8146972e-06f &&
fabsf(this->z) < 3.8146972e-06f;
}
// Unused, but must be in .rodata to match
static const char * fmt0 = "[%f %f %f]\n";
static const char * fmt1 = "%s=[%f %f %f]\n";