mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-20 05:37:03 -04:00
Demo work
This commit is contained in:
+15
-1
@@ -124,9 +124,15 @@ void* dDemo_getJaiPointer(const char* a_name, u32 bck, int num, u16* tbl) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if VERSION == VERSION_DEMO
|
||||
BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf, const char* i_arcName,
|
||||
int p5, u16* p6)
|
||||
#else
|
||||
/* 800698C0-80069BC0 .text dDemo_setDemoData__FP10fopAc_ac_cUcP14mDoExt_McaMorfPCciPUsUlSc */
|
||||
BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf, const char* i_arcName,
|
||||
int p5, u16* p6, u32 mtrlSndId, s8 i_reverb) {
|
||||
int p5, u16* p6, u32 mtrlSndId, s8 i_reverb)
|
||||
#endif
|
||||
{
|
||||
dDemo_actor_c* demo_actor = dComIfGp_demo_getActor(i_actor->demoActorID);
|
||||
if (demo_actor == NULL)
|
||||
return FALSE;
|
||||
@@ -175,12 +181,20 @@ BOOL dDemo_setDemoData(fopAc_ac_c* i_actor, u8 i_flags, mDoExt_McaMorf* i_morf,
|
||||
if (anm_frame > 1.0f) {
|
||||
anm_frame -= 1.0f;
|
||||
i_morf->setFrame(anm_frame);
|
||||
#if VERSION == VERSION_DEMO
|
||||
i_morf->play(&i_actor->current.pos, 0, 0);
|
||||
#else
|
||||
i_morf->play(&i_actor->current.pos, mtrlSndId, i_reverb);
|
||||
#endif
|
||||
} else {
|
||||
i_morf->setFrame(anm_frame);
|
||||
}
|
||||
} else {
|
||||
#if VERSION == VERSION_DEMO
|
||||
i_morf->play(&i_actor->current.pos, 0, 0);
|
||||
#else
|
||||
i_morf->play(&i_actor->current.pos, mtrlSndId, i_reverb);
|
||||
#endif
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user