diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2017-01-21 22:04:49 -0600 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-01-21 20:04:49 -0800 |
commit | ef82a98a1525f58d3a6c56194a42f7660cfc923b (patch) | |
tree | df3160b491cdc5081b57eefed93aa2fc1eada989 /src/rom4.c | |
parent | bcaab977727ded65c9eeaef9dbef9e9441d26fb7 (diff) |
label a few things and put data in field_player_avatar.c (#212)
Diffstat (limited to 'src/rom4.c')
-rw-r--r-- | src/rom4.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rom4.c b/src/rom4.c index 6946cec03..621dd203b 100644 --- a/src/rom4.c +++ b/src/rom4.c @@ -1020,10 +1020,11 @@ bool32 is_c1_link_related_active(void) void c1_overworld_normal(u16 newKeys, u16 heldKeys) { - struct UnkInputStruct inputStruct; + struct FieldInput inputStruct; + sub_8059204(); - sub_8067EEC(&inputStruct); - process_overworld_input(&inputStruct, newKeys, heldKeys); + FieldClearPlayerInput(&inputStruct); + FieldGetPlayerInput(&inputStruct, newKeys, heldKeys); if (!ScriptContext2_IsEnabled()) { if (sub_8068024(&inputStruct) == 1) @@ -1033,7 +1034,7 @@ void c1_overworld_normal(u16 newKeys, u16 heldKeys) } else { - player_step(inputStruct.input_field_2, newKeys, heldKeys); + player_step(inputStruct.dpadDirection, newKeys, heldKeys); } } } |