Disable formula AI in multiplayer
This commit is contained in:
parent
f5d47584ab
commit
af5ef5ecc2
1 changed files with 6 additions and 2 deletions
|
@ -3071,8 +3071,12 @@ private:
|
|||
|
||||
void menu_handler::ai_formula()
|
||||
{
|
||||
std::cerr << "showing ai formula...\n";
|
||||
textbox_info_.show(gui::TEXTBOX_AI,sgettext("prompt^Command:"), "", false, *gui_);
|
||||
if (network::nconnections() == 0) {
|
||||
std::cerr << "showing ai formula...\n";
|
||||
textbox_info_.show(gui::TEXTBOX_AI,sgettext("prompt^Command:"), "", false, *gui_);
|
||||
} else {
|
||||
add_chat_message(time(NULL), _("ai"), 0, "Formula commandline not available in network games");
|
||||
}
|
||||
}
|
||||
|
||||
void menu_handler::clear_messages()
|
||||
|
|
Loading…
Add table
Reference in a new issue