From 11a717e246d13491a9bca969fb3324cc701da2d1 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:03:09 +0300 Subject: [PATCH] Right align world map info box. --- UnleashedRecomp/patches/csd_patches.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UnleashedRecomp/patches/csd_patches.cpp b/UnleashedRecomp/patches/csd_patches.cpp index e7009663..6aff5a68 100644 --- a/UnleashedRecomp/patches/csd_patches.cpp +++ b/UnleashedRecomp/patches/csd_patches.cpp @@ -290,6 +290,10 @@ PPC_FUNC(sub_8258B558) ctx.r3.u32 = scene; ctx.f1.f64 = offsetX + g_worldMapOffset * 140.0f; ctx.f2.f64 = offsetY; + + if (g_worldMapOffset >= 1.0f) + ctx.f1.f64 += g_offsetX; + sub_830BB3D0(ctx, base); } } @@ -309,6 +313,9 @@ PPC_FUNC(sub_8258B558) if (textBox != NULL) { float value = 708.0f + g_worldMapOffset * 140.0f; + if (g_worldMapOffset >= 1.0f) + value += g_offsetX; + PPC_STORE_U32(textBox + 0x38, reinterpret_cast(value)); } }