mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-02 19:55:58 -04:00
Demo matches (#767)
This commit is contained in:
+13
-10
@@ -13,12 +13,13 @@
|
||||
namespace daMmusic {
|
||||
namespace {
|
||||
struct Attr_c {
|
||||
/* 0x00 */ u32 mTimer;
|
||||
/* 0x00 */ u16 field_0x00;
|
||||
/* 0x02 */ u16 field_0x02;
|
||||
/* 0x04 */ u16 field_0x04;
|
||||
};
|
||||
|
||||
static const Attr_c L_attr = {
|
||||
120, 180,
|
||||
0, 120, 180,
|
||||
};
|
||||
|
||||
inline const Attr_c & attr() { return L_attr; }
|
||||
@@ -59,14 +60,16 @@ cPhs_State daMmusic::Act_c::_create() {
|
||||
fopAcM_SetupActor(this, Act_c);
|
||||
|
||||
cPhs_State ret = cPhs_COMPLEATE_e;
|
||||
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0)) {
|
||||
set_mtx();
|
||||
fopAcM_SetMtx(this, mMtx);
|
||||
field_0x298 = Macore_is_playing();
|
||||
fopAcM_setCullSizeSphere(this, 0.0f, 0.0f, 0.0f, 300.0f);
|
||||
init_se();
|
||||
} else {
|
||||
ret = cPhs_ERROR_e;
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0)) {
|
||||
set_mtx();
|
||||
fopAcM_SetMtx(this, mMtx);
|
||||
field_0x298 = Macore_is_playing();
|
||||
fopAcM_setCullSizeSphere(this, 0.0f, 0.0f, 0.0f, 300.0f);
|
||||
init_se();
|
||||
} else {
|
||||
ret = cPhs_ERROR_e;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user