diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-01-24 23:48:01 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-01-24 23:48:01 -0300 |
| commit | 3e8893a9ea126cc846063397eec7244b0ccc7c87 (patch) | |
| tree | 71e1646b2f8a7b840ddb725e51b6c1e37e277541 /src/menu_items.c | |
| parent | b86b9ae816519c37ff61be35a102d6d3e563722e (diff) | |
| parent | 73ba320831997d38b4d6431df3805c62b76400e7 (diff) | |
Merge branch 'main' of https://github.com/HarbourMasters/SpaghettiKart
Diffstat (limited to 'src/menu_items.c')
| -rw-r--r-- | src/menu_items.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/menu_items.c b/src/menu_items.c index 4639f76a7..df7f499b3 100644 --- a/src/menu_items.c +++ b/src/menu_items.c @@ -2732,8 +2732,9 @@ func_80095BD0_label1: rmonPrintf("MAX effectcount(760) over!!!!(kawano)\n"); return displayListHead; func_80095BD0_label2: - func_80095AE0(&gGfxPool->mtxEffect[gMatrixEffectCount], arg2, arg3, arg6, arg7); - gSPMatrix(displayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxEffect[gMatrixEffectCount++]), + //func_80095AE0(&gGfxPool->mtxEffect[gMatrixEffectCount], arg2, arg3, arg6, arg7); + Mtx* mtx = SetTextMatrix(arg2, arg3, arg6, arg7); + gSPMatrix(displayListHead++, mtx, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); gMKLoadTextureTile_4b(displayListHead++, arg1, G_IM_FMT_I, arg4, 0, 0, 0, arg4, arg5, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD); @@ -8253,7 +8254,8 @@ void func_800A66A8(MenuItem* arg0, Unk_D_800E70A0* arg1) { static float x2, y2, z2; static float x1, y1, z1; - mtx = GetEffectMatrix(); // &gGfxPool->mtxEffect[gMatrixEffectCount]; + mtx = GetEffectMatrix(); + mtx2 = GetEffectMatrix(); if (arg0->paramf > 1.5) { arg0->paramf *= 0.95; } else { @@ -8275,14 +8277,14 @@ void func_800A66A8(MenuItem* arg0, Unk_D_800E70A0* arg1) { // clang-format on guScale(mtx, 1.2f, 1.2f, 1.2f); - guRotate(mtx + 1, y2, 0.0f, 1.0f, 0.0f); - guMtxCatL(mtx, mtx + 1, mtx); - guRotate(mtx + 1, z2, 0.0f, 0.0f, 1.0f); - guMtxCatL(mtx, mtx + 1, mtx); - guRotate(mtx + 1, x2, 1.0f, 0.0f, 0.0f); - guMtxCatL(mtx, mtx + 1, mtx); - guTranslate(mtx + 1, arg1->column, arg1->row, 0.0f); - guMtxCatL(mtx, mtx + 1, mtx); + guRotate(mtx2, y2, 0.0f, 1.0f, 0.0f); + guMtxCatL(mtx, mtx2, mtx); + guRotate(mtx2, z2, 0.0f, 0.0f, 1.0f); + guMtxCatL(mtx, mtx2, mtx); + guRotate(mtx2, x2, 1.0f, 0.0f, 0.0f); + guMtxCatL(mtx, mtx2, mtx); + guTranslate(mtx2, arg1->column, arg1->row, 0.0f); + guMtxCatL(mtx, mtx2, mtx); // gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxEffect[gMatrixEffectCount++]), // (G_MTX_NOPUSH | G_MTX_LOAD) | G_MTX_MODELVIEW); AddEffectMatrixFixed(G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); |
