summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorMaikelChan <maikelchan88@gmail.com>2022-03-25 04:00:59 +0100
committerKiritoDev <36680385+KiritoDv@users.noreply.github.com>2022-03-29 10:02:31 -0600
commitf3fe43b912995cb593f18f041725d8de6dad2bf5 (patch)
tree721ab1293bae800b1fd70f2dab6b4faeb1bf53a1 /soh/src/code
parent25468cf7223e8343091e5e7e0a99fe8fb7c473ee (diff)
Fixed Link's sword being cut in preview in pause menu.
Apply the offset only when live Link is enabled.
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_player_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_player_lib.c b/soh/src/code/z_player_lib.c
index 82c1e42bf..d7344d7c3 100644
--- a/soh/src/code/z_player_lib.c
+++ b/soh/src/code/z_player_lib.c
@@ -1590,7 +1590,7 @@ void func_80091A24(GlobalContext* globalCtx, void* seg04, void* seg06, SkelAnime
sp12C[0] = sword;
sp12C[1] = shield;
- Matrix_SetTranslateRotateYXZ(pos->x - (LINK_AGE_IN_YEARS == YEARS_ADULT ? 25 : 0),
+ Matrix_SetTranslateRotateYXZ(pos->x - ((CVar_GetS32("gPauseLiveLink", 0) && LINK_AGE_IN_YEARS == YEARS_ADULT) ? 25 : 0),
pos->y - (CVar_GetS32("gPauseTriforce", 0) ? 16 : 0), pos->z, rot);
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);