mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 20:10:37 -04:00
Miscellaneous data fixes (#2983)
* Replace bss lbl_ with init$0000 * Rename l_HIOInit to hio_set The name is excluded from TP's weird maps, but hio_set is the name they used in TWW's maps. * Fix a couple more init$ names * Fix nbomb missing some bss * Fix camera localstatics having wrong name * Rename l_initHIO to hio_set * A couple manual fixes * Rename hioInit to hio_set * Couple more manual fixes * Fix d_a_npc_cd2 data and function order * More data fixes * Fix inconsistent hex vs decimal
This commit is contained in:
@@ -24,7 +24,7 @@ void daObj_Kbox_HIO_c::genMessage(JORMContext* ctx) {
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool l_HIOInit;
|
||||
static bool hio_set;
|
||||
|
||||
static daObj_Kbox_HIO_c l_HIO;
|
||||
|
||||
@@ -431,7 +431,7 @@ static int daObj_Kbox_Delete(obj_kbox_class* i_this) {
|
||||
fopAcM_GetID(a_this);
|
||||
dComIfG_resDelete(&i_this->mPhase, "Obj_kbox");
|
||||
if (i_this->mIsHIOOwner) {
|
||||
l_HIOInit = false;
|
||||
hio_set = false;
|
||||
mDoHIO_DELETE_CHILD(l_HIO.mId);
|
||||
}
|
||||
dComIfG_Bgsp().Release(i_this->mBgw);
|
||||
@@ -486,9 +486,9 @@ static int daObj_Kbox_Create(fopAc_ac_c* a_this) {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
if (!l_HIOInit) {
|
||||
if (!hio_set) {
|
||||
i_this->mIsHIOOwner = true;
|
||||
l_HIOInit = true;
|
||||
hio_set = true;
|
||||
l_HIO.mId = mDoHIO_CREATE_CHILD("スカル魚専用木箱", &l_HIO);
|
||||
}
|
||||
fopAcM_SetMtx(a_this, i_this->mModel->getBaseTRMtx());
|
||||
|
||||
Reference in New Issue
Block a user