mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-22 00:06:34 -04:00
Demo matches (#767)
This commit is contained in:
+10
-5
@@ -116,12 +116,17 @@ static BOOL daAM2_Draw(am2_class* i_this) {
|
||||
static void anm_init(am2_class* i_this, int bckFileIdx, f32 morf, u8 loopMode, f32 speed, int soundFileIdx) {
|
||||
i_this->mCurrBckIdx = bckFileIdx;
|
||||
if (soundFileIdx >= 0) {
|
||||
void* soundAnm = dComIfG_getObjectRes("AM2", soundFileIdx);
|
||||
J3DAnmTransform* bckAnm = (J3DAnmTransform*)dComIfG_getObjectRes("AM2", bckFileIdx);
|
||||
i_this->mpMorf->setAnm(bckAnm, loopMode, morf, speed, 0.0f, -1.0f, soundAnm);
|
||||
i_this->mpMorf->setAnm(
|
||||
(J3DAnmTransform*)dComIfG_getObjectRes("AM2", bckFileIdx),
|
||||
loopMode, morf, speed, 0.0f, -1.0f,
|
||||
dComIfG_getObjectRes("AM2", soundFileIdx)
|
||||
);
|
||||
} else {
|
||||
J3DAnmTransform* bckAnm = (J3DAnmTransform*)dComIfG_getObjectRes("AM2", bckFileIdx);
|
||||
i_this->mpMorf->setAnm(bckAnm, loopMode, morf, speed, 0.0f, -1.0f, NULL);
|
||||
i_this->mpMorf->setAnm(
|
||||
(J3DAnmTransform*)dComIfG_getObjectRes("AM2", bckFileIdx),
|
||||
loopMode, morf, speed, 0.0f, -1.0f,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user