From 33febf909eeddb24f10258bfce682fa7a41e7b27 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:17:37 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/CashEmotion/CashEmotionMgr.cpp Batch #16890 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_02942 CCashEmotionMgr::ProcessChatCommand: logic confirmed by peer review - fn_09430 UICashEmotionMiniWnd::Refresh: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/CashEmotion/CashEmotionMgr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/CashEmotion/CashEmotionMgr.cpp b/Source/Contents/CashEmotion/CashEmotionMgr.cpp index b2c57c3e8..f9bdc1950 100644 --- a/Source/Contents/CashEmotion/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotion/CashEmotionMgr.cpp @@ -663,7 +663,7 @@ void CCashEmotionMgr::ProcessChatCommand(const char* command) { { std::string key(command + 1); auto it = this->m_commands.find(key); - actionId = this->m_commands.end() == it ? 0 : it->second; + actionId = this->m_commands.end() != it ? it->second : 0; } if (actionId == 0) { @@ -2737,7 +2737,7 @@ void UICashEmotionMiniWnd::Refresh(int first) { if (this->m_pieces[0]) { if (this->m_selected) { std::pair entry = this->m_selected->Get(first); - const bool owned = entry.first == g_cashEmotionMgr->BasePackId() ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); + const bool owned = g_cashEmotionMgr->BasePackId() == entry.first ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); this->m_pieces[0]->Set(entry.first, entry.second, false, false, !owned); } else { this->m_pieces[0]->Set(-1, -1, false, false, false); @@ -2747,7 +2747,7 @@ void UICashEmotionMiniWnd::Refresh(int first) { if (this->m_pieces[1]) { if (this->m_selected) { std::pair entry = this->m_selected->Get(first + 1); - const bool owned = entry.first == g_cashEmotionMgr->BasePackId() ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); + const bool owned = g_cashEmotionMgr->BasePackId() == entry.first ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); this->m_pieces[1]->Set(entry.first, entry.second, false, false, !owned); } else { this->m_pieces[1]->Set(-1, -1, false, false, false); @@ -2757,7 +2757,7 @@ void UICashEmotionMiniWnd::Refresh(int first) { if (this->m_pieces[2]) { if (this->m_selected) { std::pair entry = this->m_selected->Get(first + 2); - const bool owned = entry.first == g_cashEmotionMgr->BasePackId() ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); + const bool owned = g_cashEmotionMgr->BasePackId() == entry.first ? true : g_cashEmotionMgr->IsOwnedPack(entry.first); this->m_pieces[2]->Set(entry.first, entry.second, false, false, !owned); } else { this->m_pieces[2]->Set(-1, -1, false, false, false);