From 4001e6d8bd3e4d60a2ab44da2eb9fafe492b7de3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 00:40:08 +0000 Subject: [PATCH] Decompile fn_20946 (CooldownState::CooldownState) Batch #17554 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_20946 CooldownState::CooldownState: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Cooldowns/CooldownState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/UI/Cooldowns/CooldownState.cpp b/Source/UI/Cooldowns/CooldownState.cpp index dd6a2d7a8..72ece8db2 100644 --- a/Source/UI/Cooldowns/CooldownState.cpp +++ b/Source/UI/Cooldowns/CooldownState.cpp @@ -32,7 +32,11 @@ CooldownState::CooldownState(int slotValue, int xValue, int yValue, std::uint32_ this->slot = slotValue; this->ClearEdges(); std::memset(this->vertices, 0, sizeof(this->vertices)); - this->color = this->reverse != 0 ? 0xAAFFFFFFu : 0xAA000000u; + if (this->reverse != 0) { + this->color = 0xAAFFFFFF; + } else { + this->color = 0xAA000000; + } } // OFFSET: 0x00910480