Skip to content

Commit 0a0c47a

Browse files
committed
map1_s06: func_800D4FE4
1 parent e2c2d52 commit 0a0c47a

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

include/maps/map1/map1_s06.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ void func_800D30F0(s_SubCharacter* chara);
5959

6060
void func_800D4FC0(s32 arg0, s32 arg1);
6161

62+
bool func_800D4FE4(s_SubCharacter* chara, s32 moveSpeed);
63+
6264
void func_800D5400(void);
6365

6466
void func_800D5B98(void);
@@ -78,6 +80,4 @@ void func_800D6578(void);
7880

7981
void func_800D6C88(void);
8082

81-
s32 func_800D4FE4(s_SubCharacter* chara, s32 moveSpeed);
82-
8383
#endif

src/maps/map1_s06/map1_s06.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,16 @@ void func_800D4FC0(s32 arg0, s32 arg1) // 0x800D4FC0
276276
sharedData_800D8616_1_s05 += arg1;
277277
}
278278

279-
INCLUDE_ASM("asm/maps/map1_s06/nonmatchings/map1_s06", func_800D4FE4);
279+
bool func_800D4FE4(s_SubCharacter* chara, s32 moveSpeed) // 0x800D4FE4
280+
{
281+
// TODO: Using wrong `properties_E4` union member?
282+
s32 runTimer;
283+
284+
runTimer = chara->properties_E4.player.runTimer_F8;
285+
286+
return ((runTimer < 0 || runTimer > Q12(198.0f)) && (chara->model_0.anim_4.time_4 < Q12(175.0f))) ||
287+
((runTimer >= 0 && runTimer < Q12(175.0f)) && (chara->model_0.anim_4.time_4 > Q12(198.0f)));
288+
}
280289

281290
INCLUDE_ASM("asm/maps/map1_s06/nonmatchings/map1_s06", func_800D5048);
282291

0 commit comments

Comments
 (0)