Decompile fn_22190 (CGameMode::ShowSpecialPopup)
Batch #17829 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_22190 CGameMode::ShowSpecialPopup: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, 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
9dc1aca0c7
commit
f0eaeea677
1 changed files with 4 additions and 4 deletions
|
|
@ -3794,8 +3794,8 @@ void CGameMode::ShowSpecialPopup(int popupId) {
|
|||
std::string text;
|
||||
switch (popup->m_messageId) {
|
||||
case 0:
|
||||
for (const std::string& description : popup->m_descriptions) {
|
||||
text = RemoveTextColors(description.c_str());
|
||||
for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) {
|
||||
text = RemoveTextColors(description->c_str());
|
||||
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(text.c_str()), popup->m_color, 0, 0, 0);
|
||||
}
|
||||
break;
|
||||
|
|
@ -3805,8 +3805,8 @@ void CGameMode::ShowSpecialPopup(int popupId) {
|
|||
}
|
||||
[[fallthrough]];
|
||||
case 2:
|
||||
for (const std::string& description : popup->m_descriptions) {
|
||||
text = RemoveTextColors(description.c_str());
|
||||
for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) {
|
||||
text = RemoveTextColors(description->c_str());
|
||||
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(text.c_str()), popup->m_color, 0, 0, 0);
|
||||
}
|
||||
if (UIWindow* popupWindow = g_windowMgr.EnsureWindow(WID_BALLOONOPENBTN)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue