Skip to content

Commit

Permalink
Minor changes to d_a_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sage-of-Mirrors committed Sep 13, 2023
1 parent d8c8f54 commit 7a43b23
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/d/actor/d_a_branch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ void daBranch_c::set_mtx() {
if (pMdl) {
pMdl->setBaseScale(mScale);

MTXTrans(mDoMtx_stack_c::now, current.pos.x, current.pos.y, current.pos.z);
mDoMtx_XYZrotM(mDoMtx_stack_c::now, current.angle.x, current.angle.y, current.angle.z);

MTXCopy(mDoMtx_stack_c::now, pMdl->getBaseTRMtx());
mDoMtx_stack_c::transS(getPosition());
mDoMtx_stack_c::XYZrotM(getAngle().x, getAngle().y, getAngle().z);
pMdl->i_setBaseTRMtx(mDoMtx_stack_c::get());
}
}
}
Expand Down Expand Up @@ -142,7 +141,7 @@ s32 daBranch_c::CreateHeap() {
break;
}

mAnims[i]->mFrameCtrl.setFrame(0.0f);
mAnims[i]->setFrame(0.0f);
set_anim(i, bckIds[i], basIds[i]);
}

Expand Down

0 comments on commit 7a43b23

Please sign in to comment.