mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-16 04:44:26 -04:00
c_lib, c_xyz, c_angle, c_bg_s_gnd_chk fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
cBgS_GndChk::cBgS_GndChk() {
|
||||
m_pos = cXyz::Zero;
|
||||
setActorPid(0xFFFFFFFF);
|
||||
mFlags = 2;
|
||||
mFlags = 3;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user