mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-24 15:43:13 -04:00
minor cleanups
This commit is contained in:
@@ -553,7 +553,7 @@ s32 fopAcM_create(s16 procName, u16 enemyNo, u32 parameter, const cXyz* pPos, in
|
||||
fopAcM_prm_class* params =
|
||||
createAppend(enemyNo, parameter, pPos, roomNo, pRot, pScale, subType, 0xFFFFFFFF);
|
||||
if (params == NULL) {
|
||||
return 0xFFFFFFFF;
|
||||
return -1;
|
||||
} else {
|
||||
return fpcSCtRq_Request(fpcLy_CurrentLayer(), procName, (stdCreateFunc)pCreateFunc, NULL,
|
||||
params);
|
||||
|
||||
@@ -60,7 +60,7 @@ s32 fpcLf_Create(leafdraw_class* pLeaf) {
|
||||
profDef = (leaf_process_profile_definition*)pLeaf->mBase.mpProf;
|
||||
pLeaf->mpDrawMtd = profDef->mLfDrwMth;
|
||||
pLeaf->mBase.mSubType = fpcBs_MakeOfType(&g_fpcLf_type);
|
||||
fpcDwPi_Init(&pLeaf->mDwPi, profDef->unk20);
|
||||
fpcDwPi_Init(&pLeaf->mDwPi, profDef->mPriority);
|
||||
pLeaf->mbUnk0 = 0;
|
||||
}
|
||||
return fpcMtd_Create(&pLeaf->mpDrawMtd->mBase, pLeaf);
|
||||
|
||||
Reference in New Issue
Block a user