From efa94de271d6e5ea3f805a54568de9cdadd722d2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 11:57:32 +0000 Subject: [PATCH] Decompile fn_19730 (CShutDownSchedule::UpdateNotice) Batch #12155 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_19730 CShutDownSchedule::UpdateNotice: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Schedule/ShutDownSchedule.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/Contents/Schedule/ShutDownSchedule.cpp b/Source/Contents/Schedule/ShutDownSchedule.cpp index d4bc7a0c..bc5fa860 100644 --- a/Source/Contents/Schedule/ShutDownSchedule.cpp +++ b/Source/Contents/Schedule/ShutDownSchedule.cpp @@ -5,16 +5,19 @@ #include "UI/Window/UIWindowMgr.h" // GLOBAL: gl_24854 -double s_shutDownNoticeSeconds[6] = {1800.0, 900.0, 600.0, 300.0, 180.0, 60.0}; +double s_shutDownNoticeSeconds[6] = { + 1800.0, + 900.0, + 600.0, + 300.0, + 180.0, + 60.0, +}; // OFFSET: 0x00BA8CC0 // FUNCTION: fn_19730 void CShutDownSchedule::UpdateNotice() { - if (this->noticeIndex >= 6) { - return; - } - - while (true) { + while (this->noticeIndex < 6) { const int diff = static_cast(static_cast(this->seconds) - s_shutDownNoticeSeconds[this->noticeIndex]); if (diff >= 0) { this->interval = static_cast(diff) * 1000; @@ -22,9 +25,6 @@ void CShutDownSchedule::UpdateNotice() { } ++this->noticeIndex; - if (this->noticeIndex >= 6) { - return; - } } }