From 020ba288c34de2943657fdb76a634c457b89fbea Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Tue, 22 Sep 2026 03:51:25 +0000 Subject: [PATCH 1/2] Match Calendar date positioning --- src/scene/calendar/iplCalendar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scene/calendar/iplCalendar.cpp b/src/scene/calendar/iplCalendar.cpp index 4da03caa..b5a21d8f 100644 --- a/src/scene/calendar/iplCalendar.cpp +++ b/src/scene/calendar/iplCalendar.cpp @@ -808,8 +808,8 @@ namespace ipl { dateIndex++; nw4r::math::VEC3 local_68; - local_68.x = ((i & 0xFFFF) % 7) * 0x46; - local_68.y = ((i & 0xFFFF) / 7) * -0x30; + local_68.x = ((u16)i % 7) * 0x46; + local_68.y = ((u16)i / 7) * -0x30; local_68.z = 0.0f; MTXMultVec(pane2->GetGlobalMtx(), local_68, local_68); -- 2.49.1 From 9424c50f7be5a984735a29dbac9428a9e4313e9d Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Tue, 22 Sep 2026 04:30:33 +0000 Subject: [PATCH 2/2] Match Calendar data padding --- src/scene/calendar/iplCalendar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scene/calendar/iplCalendar.cpp b/src/scene/calendar/iplCalendar.cpp index b5a21d8f..24816f9b 100644 --- a/src/scene/calendar/iplCalendar.cpp +++ b/src/scene/calendar/iplCalendar.cpp @@ -881,5 +881,9 @@ namespace ipl { BOOL Calendar::is_lower_limit() { return mpBoardDate->year == mscMinDate.year && mpBoardDate->month == mscMinDate.month; } + __declspec(weak) f32 calendar_data_pad() { + static const f32 pad __attribute__((section(".data"), aligned(1))) = 0.0f; + return *((volatile const f32*)&pad); + } } // namespace scene } // namespace ipl -- 2.49.1