Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Bug #919310 ยป 0008-Qt-Fix-plr_report-toggle_ai_mode-shadow-warning.patch

Marko Lindqvist, 2021-02-07 06:22 AM

View differences:

client/gui-qt/plrdlg.cpp
}
ai_menu->setAttribute(Qt::WA_DeleteOnClose);
connect(ai_menu, &QMenu::triggered, [=](QAction *act) {
int level;
int lvl;
if (act == toggle_ai_act) {
send_chat_printf("/aitoggle \"%s\"",
......
return;
}
if (act && act->isVisible()) {
level = act->data().toInt();
lvl = act->data().toInt();
if (is_human(plr_wdg->other_player)) {
send_chat_printf("/aitoggle \"%s\"",
player_name(plr_wdg->other_player));
}
send_chat_printf("/%s %s", ai_level_cmd(static_cast<ai_level>(level)),
send_chat_printf("/%s %s", ai_level_cmd(static_cast<ai_level>(lvl)),
player_name(plr_wdg->other_player));
}
});
    (1-1/1)