mirror of
https://github.com/zeldaret/tp
synced 2026-07-07 22:22:05 -04:00
f_pc_draw_priority: Type fix
This commit is contained in:
@@ -340,7 +340,7 @@ static int fopAc_Create(void* actor) {
|
||||
|
||||
int ret = fpcMtd_Create((process_method_class*)ac->mSubMtd, ac);
|
||||
if (ret == 4) {
|
||||
s16 priority = fpcLf_GetPriority(ac);
|
||||
s32 priority = fpcLf_GetPriority(ac);
|
||||
fopDwTg_ToDrawQ(&ac->mDwTg, priority);
|
||||
} else if (ret == 5) {
|
||||
fopAcM_OnCondition(ac, 0x10);
|
||||
|
||||
@@ -70,10 +70,9 @@ static int fopCam_Create(void* i_actorP) {
|
||||
}
|
||||
|
||||
int ret = fpcMtd_Create(&camera->mpMtd->mBase, camera);
|
||||
|
||||
if (ret == 4) {
|
||||
s16 prior = fpcLf_GetPriority(camera);
|
||||
fopDwTg_ToDrawQ(&camera->mCreateTag, prior);
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
s32 priority = fpcLf_GetPriority(camera);
|
||||
fopDwTg_ToDrawQ(&camera->mCreateTag, priority);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
//
|
||||
|
||||
/* 80021308-80021310 0008+00 s=0 e=1 z=0 None .text fpcDwPi_Get__FPC19draw_priority_class */
|
||||
s32 fpcDwPi_Get(const draw_priority_class* pDwPi) {
|
||||
s16 fpcDwPi_Get(const draw_priority_class* pDwPi) {
|
||||
return pDwPi->mPriority;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
//
|
||||
|
||||
/* 80021A00-80021A24 0024+00 s=0 e=4 z=2 None .text fpcLf_GetPriority__FPC14leafdraw_class */
|
||||
s32 fpcLf_GetPriority(const leafdraw_class* pLeaf) {
|
||||
s16 fpcLf_GetPriority(const leafdraw_class* pLeaf) {
|
||||
return fpcDwPi_Get(&pLeaf->mDwPi);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user