d_a_spc_item01 OK

This commit is contained in:
LagoLunatic
2024-02-10 15:53:12 -05:00
parent 25eee20af3
commit 4be64a7c7a
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -442,7 +442,7 @@ config.libs = [
Object(NonMatching, "d/actor/d_a_player_main.cpp"),
Object(NonMatching, "d/actor/d_a_player_npc.cpp"),
Object(NonMatching, "d/actor/d_a_sea.cpp"),
Object(NonMatching, "d/actor/d_a_spc_item01.cpp"),
Object(Matching, "d/actor/d_a_spc_item01.cpp"),
Object(Matching, "d/actor/d_a_vrbox.cpp", extra_cflags=['-pragma "nosyminline on"']),
Object(Matching, "d/actor/d_a_vrbox2.cpp"),
Object(NonMatching, "d/d_auction_screen.cpp"),
+6 -2
View File
@@ -53,10 +53,14 @@ static dCcD_SrcCyl l_cyl_src = {
/* 8015DAF4-8015DBC0 .text set_mtx__13daSpcItem01_cFv */
void daSpcItem01_c::set_mtx() {
/* Nonmatching */
csXyz angle = current.angle;
cXyz scale = mScale;
f32 offsetY = (s8)m_itemNo != BOKO_BELT ? 0.0f : -24.0f;
f32 offsetY = 0.0f;
switch (m_itemNo) {
case BOKO_BELT:
offsetY = -24.0f;
break;
}
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos.x, current.pos.y + offsetY, current.pos.z);