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).
This commit is contained in:
ragnarok-clanker 2026-11-12 17:08:57 +00:00
commit 273cb19e1a

View file

@ -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<std::uint64_t>(manager->GetServerTime()) * 10000000;
const std::int64_t interval = static_cast<std::int64_t>(static_cast<std::uint64_t>(expiry) * 10000000 - now) / 10000;