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).
This commit is contained in:
parent
f0f2e9d542
commit
33febf909e
1 changed files with 4 additions and 4 deletions
|
|
@ -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<int, int> 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<int, int> 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<int, int> 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue