fix: always translate menus as they always has destination player (#225)
This commit is contained in:
parent
ada1b353d9
commit
bea8120a41
1 changed files with 2 additions and 1 deletions
|
|
@ -1690,6 +1690,8 @@ void BotControl::showMenu (int id) {
|
|||
|
||||
// make menus looks like we need only once
|
||||
if (!menusParsed) {
|
||||
m_ignoreTranslate = false; // always translate menus
|
||||
|
||||
for (auto &parsed : m_menus) {
|
||||
StringRef translated = conf.translate (parsed.text);
|
||||
|
||||
|
|
@ -1711,7 +1713,6 @@ void BotControl::showMenu (int id) {
|
|||
}
|
||||
auto &client = util.getClient (game.indexOfPlayer (m_ent));
|
||||
|
||||
|
||||
auto sendMenu = [&](int32 slots, bool last, StringRef text) {
|
||||
MessageWriter (MSG_ONE, msgs.id (NetMsg::ShowMenu), nullptr, m_ent)
|
||||
.writeShort (slots)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue