From 273cb19e1ae7aea6e18b9bbc0a4d0cbf2fda5373 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 17:08:57 +0000 Subject: [PATCH] Decompile fn_21597 (CGameMode::RefreshEmotionSaleSchedule) Batch #18632 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_21597 CGameMode::RefreshEmotionSaleSchedule: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, kyoshi, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModePackets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index ff4bf4b5c..a2a08d29e 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -7427,7 +7427,8 @@ void CGameMode::RefreshEmotionSaleSchedule() { return; } - const int expiry = manager->RefreshUnownedPacks().nextTime; + const CashEmotionPackRefresh refresh = manager->RefreshUnownedPacks(); + const int expiry = refresh.nextTime; if (expiry < 0x7FFFFFFF) { const std::uint64_t now = static_cast(manager->GetServerTime()) * 10000000; const std::int64_t interval = static_cast(static_cast(expiry) * 10000000 - now) / 10000;