diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-04-11 15:02:53 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-04-11 15:02:53 -0400 |
| commit | 6aeaaef643db58fd2ed26d78eada3a33666f6a3b (patch) | |
| tree | 5bb1ecef08ae668df57794075cad9f5660ea82ff /src/d/actor/d_a_player_main.cpp | |
| parent | 309158e274a0613594ffabddec48765cbd4f9c83 (diff) | |
Added enum for Link's movement direction
Diffstat (limited to 'src/d/actor/d_a_player_main.cpp')
| -rw-r--r-- | src/d/actor/d_a_player_main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/actor/d_a_player_main.cpp b/src/d/actor/d_a_player_main.cpp index 32f21b3f..77f44474 100644 --- a/src/d/actor/d_a_player_main.cpp +++ b/src/d/actor/d_a_player_main.cpp @@ -1137,13 +1137,13 @@ void daPy_lk_c::setDoStatus() { /* 80108A9C-80108B08 .text getDirectionFromAngle__9daPy_lk_cFs */ int daPy_lk_c::getDirectionFromAngle(s16 angle) { if (abs(angle) > 0x6000) { - return 1; + return DIR_BACKWARD; } else if (angle >= 0x2000) { - return 2; + return DIR_LEFT; } else if (angle <= -0x2000) { - return 3; + return DIR_RIGHT; } else { - return 0; + return DIR_FORWARD; } } |
