@@ -710,45 +710,39 @@ void sub_805CE14(Vec2_32 *qVal, Vec2_32 *param1, u16 region[2], s8 *param3)
710710 }
711711}
712712
713- #if 0
714- void sub_805CEBC (s32 arg0 , s32 arg1 , u16 arg2 , u16 arg3 , s32 arg4 , s32 arg5 ) {
715- u16 temp_r0 ;
716- u8 temp_r6 ;
717-
718- temp_r6 = (u8 ) arg4 ;
719- temp_r0 = TaskCreate (Task_40_805C198 , 0x40U , 0x4040U , 0U , TaskDestructor_805D09C )-> data ;
720- temp_r0 -> unkA = 0x3C ;
721- temp_r0 -> unkC = arg0 ;
722- temp_r0 -> unk10 = arg1 ;
723- temp_r0 -> unk6 = arg2 ;
724- temp_r0 -> unk8 = arg3 ;
725- temp_r0 -> unk14 = arg5 ;
726- temp_r0 -> unk4 = temp_r6 ;
727- temp_r0 -> unk5 = 0 ;
728- sub_805C138 ();
729- if (temp_r6 == 0 ) {
713+ void sub_805CEBC (s32 qWorldX , s32 qWorldY , u16 regionX , u16 regionY , u8 arg4 , Player * p )
714+ {
715+ EUC_Strc40 * strc = TASK_DATA (TaskCreate (Task_40_805C198 , sizeof (EUC_Strc40 ), 0x4040U , 0U , TaskDestructor_805D09C ));
716+ strc -> unkA = 60 ;
717+ strc -> qWorldX = qWorldX ;
718+ strc -> qWorldY = qWorldY ;
719+ strc -> regionX = regionX ;
720+ strc -> regionY = regionY ;
721+ strc -> p = p ;
722+ strc -> unk4 = arg4 ;
723+ strc -> unk5 = 0 ;
724+ sub_805C138 (strc );
725+ if (arg4 == 0 ) {
730726 m4aSongNumStart (SE_POOF );
731727 }
732728}
733729
734- static inline void sub_805CF38 (s32 arg0 , s32 arg1 , u16 arg2 , u16 arg3 , s32 arg4 ) {
735- u16 temp_r0 ;
736-
737- if (arg4 != 0 ) {
738- temp_r0 = TaskCreate (Task_14_805C03C , 0x14U , 0x4040U , 0U , TaskDestructor_805C03C )-> data ;
739- temp_r0 -> unk0 = 0 ;
740- temp_r0 -> unk10 = arg4 ;
741- temp_r0 -> unk8 = arg0 ;
742- temp_r0 -> unkC = arg1 ;
743- temp_r0 -> unk2 = arg2 ;
744- temp_r0 -> unk4 = arg3 ;
730+ void sub_805CF38 (s32 qWorldX , s32 qWorldY , u16 regionX , u16 regionY , Player * p )
731+ {
732+ if (p != 0 ) {
733+ EUC_Strc14 * strc14 = TASK_DATA (TaskCreate (Task_14_805C03C , sizeof (EUC_Strc14 ), 0x4040U , 0U , TaskDestructor_805C03C ));
734+ strc14 -> unk0 = 0 ;
735+ strc14 -> p = p ;
736+ strc14 -> qWorldX = qWorldX ;
737+ strc14 -> qWorldY = qWorldY ;
738+ strc14 -> regionX = regionX ;
739+ strc14 -> regionY = regionY ;
745740 }
746741}
747742
748- void TaskDestructor_805C03C (Task * arg0 ) {
749-
750- }
743+ void TaskDestructor_805C03C (Task * arg0 ) { }
751744
745+ #if 0
752746s32 sub_805CF90 (s16 arg0 , s16 arg1 , s16 arg2 , s32 arg3 ) {
753747 s32 temp_r4 ;
754748
0 commit comments