From f405d264c142f57f2dc508ded68bcc73bf29169f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 11:10:02 +0000 Subject: [PATCH] Decompile fn_09639 (UICheckAttendanceWnd::OnCreate) Batch #18144 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_09639 UICheckAttendanceWnd::OnCreate: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Events/UICheckAttendanceWnd.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/UI/Events/UICheckAttendanceWnd.cpp b/Source/UI/Events/UICheckAttendanceWnd.cpp index c678c351e..dcf84d4df 100644 --- a/Source/UI/Events/UICheckAttendanceWnd.cpp +++ b/Source/UI/Events/UICheckAttendanceWnd.cpp @@ -121,11 +121,7 @@ void UICheckAttendanceWnd::OnCreate(int, int) { __time32_t now; _time32(&now); __time32_t remaining = _mktime32(&end) - now; - if (remaining < 1) { - this->m_daysLeft = 0; - } else { - this->m_daysLeft = _localtime32(&remaining)->tm_yday; - } + this->m_daysLeft = remaining > 0 ? _localtime32(&remaining)->tm_yday : 0; this->m_notice = new UIBmpTextButton(); this->m_notice->SetBitmap("유저인터페이스\\check_attendance\\bt_ok_normal.bmp", 0, 0);