fix: game menus are still executed when yapb menu is showed (fixes #271)
This commit is contained in:
parent
a763c9b995
commit
ae0156ff42
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ CR_DECLARE_SCOPED_ENUM (Menu,
|
||||||
KickPage1,
|
KickPage1,
|
||||||
KickPage2,
|
KickPage2,
|
||||||
KickPage3,
|
KickPage3,
|
||||||
KickPage4,
|
KickPage4
|
||||||
)
|
)
|
||||||
|
|
||||||
// bomb say string
|
// bomb say string
|
||||||
|
|
|
||||||
|
|
@ -1675,7 +1675,7 @@ bool BotControl::executeMenus () {
|
||||||
// let's get handle
|
// let's get handle
|
||||||
for (auto &menu : m_menus) {
|
for (auto &menu : m_menus) {
|
||||||
if (menu.ident == issuer.menu) {
|
if (menu.ident == issuer.menu) {
|
||||||
return (this->*menu.handler) (strValue (1).int_ ());
|
return (this->*menu.handler) (strValue (1).int_ ()) == BotCommandResult::Handled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue