summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_mflft.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-09-15 11:14:19 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-09-15 11:14:19 -0400
commit065f5170214a431f1ca4ff9f3b7f34c3807095ad (patch)
tree6e2640bb9cdecc5b9efdfaff82f43c2f550a425b /src/d/actor/d_a_mflft.cpp
parentbe7b6b1e77c990f33e7ea46759fbe12966b9fcad (diff)
Make m_Do_ext fields private, more bmd cleanup
Diffstat (limited to 'src/d/actor/d_a_mflft.cpp')
-rw-r--r--src/d/actor/d_a_mflft.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/d/actor/d_a_mflft.cpp b/src/d/actor/d_a_mflft.cpp
index b3818d6e..574c3328 100644
--- a/src/d/actor/d_a_mflft.cpp
+++ b/src/d/actor/d_a_mflft.cpp
@@ -77,7 +77,12 @@ void ride_call_back(dBgW*, fopAc_ac_c* arg1, fopAc_ac_c* arg2) {
/* 00000408-00000488 .text himo_Draw__FP11mflft_class */
void himo_Draw(mflft_class* i_this) {
+#ifdef __MWERKS__
i_this->mLineMat.update(10, (GXColor){150, 150, 150, 255}, &i_this->actor.tevStr);
+ #else
+ GXColor color = {150, 150, 150, 255};
+ i_this->mLineMat.update(10, color, &i_this->actor.tevStr);
+#endif
dComIfGd_set3DlineMat(&i_this->mLineMat);
}
@@ -319,7 +324,7 @@ void himo_move(mflft_class* i_this) {
cXyz sp3C;
cXyz* line1;
cXyz* line2;
- s32 i;
+ int i;
u8* lineSize;
for (i = 0; i < ARRAY_SSIZE(i_this->m6EC); i++) {
@@ -329,12 +334,12 @@ void himo_move(mflft_class* i_this) {
sp48.z = i_this->m6EC[i] * cM_ssin(i_this->m298 * 15000);
MtxPosition(&sp48, &sp3C);
- line1 = i_this->mLineMat.mpLines[i].mpSegments;
- line2 = i_this->mLineMat.mpLines[i + 3].mpSegments;
+ line1 = i_this->mLineMat.getPos(i);
+ line2 = i_this->mLineMat.getPos(i + 3);
if (i_this->m2D4[i] == 0) {
sp48 = i_this->m2FC[i] - i_this->m2D8[i];
- lineSize = i_this->mLineMat.mpLines[i].mpSize;
+ lineSize = i_this->mLineMat.getSize(i);
for (s32 j = 0; j < 10; line1++, line2++, lineSize++, j++) {
if (j < 9) {
@@ -384,14 +389,14 @@ void himo_move(mflft_class* i_this) {
dComIfG_Ccsp()->Set(&i_this->mCyls[i]);
} else {
#if VERSION > VERSION_DEMO
- cXyz* line2 = i_this->mLineMat.mpLines[i + 3].mpSegments;
+ cXyz* line2 = i_this->mLineMat.getPos(i + 3);
#endif
- *i_this->mLineMat.mpLines[i].mpSegments = i_this->m2D8[i];
- lineSize = i_this->mLineMat.mpLines[i].mpSize;
+ *i_this->mLineMat.getPos(i) = i_this->m2D8[i];
+ lineSize = i_this->mLineMat.getSize(i);
himo_cut_control(i_this, line1, lineSize, NULL);
*line2 = i_this->m2FC[i];
- lineSize = i_this->mLineMat.mpLines[i + 3].mpSize;
+ lineSize = i_this->mLineMat.getSize(i + 3);
himo_cut_control(i_this, line2, lineSize, 1);
}
}