From cb6d09c835dee7c110cf4be576200f70ded2df81 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 09:55:37 +0000 Subject: [PATCH] Decompile fn_19723 (CPartialShutDownSchedule::Process) Batch #18027 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19723 CPartialShutDownSchedule::Process: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Schedule/PartialShutDownSchedule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Contents/Schedule/PartialShutDownSchedule.cpp b/Source/Contents/Schedule/PartialShutDownSchedule.cpp index 985813468..a6760f95a 100644 --- a/Source/Contents/Schedule/PartialShutDownSchedule.cpp +++ b/Source/Contents/Schedule/PartialShutDownSchedule.cpp @@ -78,7 +78,8 @@ void CPartialShutDownSchedule::Process(const std::uint64_t& now) { if (seconds >= 3600) { char text[256]; std::memset(text, 0, 255); - std::sprintf(text, LookupMessage(MSI_MENU_WEBBROWSERWND), seconds / 3600, (seconds % 3600) / 60); + int secondsPerHour = 3600; + std::sprintf(text, LookupMessage(MSI_MENU_WEBBROWSERWND), seconds / secondsPerHour, (seconds % secondsPerHour) / 60); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); return; }