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:
parent
7ac1f7dd79
commit
273cb19e1a
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue