1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Implemented "Allied Adventure Map AI" option

This commit is contained in:
Ivan Savenko
2023-06-29 19:09:47 +03:00
parent 21c45bd84f
commit 8efa7911b7
8 changed files with 22 additions and 41 deletions

View File

@@ -94,7 +94,7 @@ void ClientCommandManager::handleGoSoloCommand()
{
if(elem.second.human)
{
auto AiToGive = CSH->client->aiNameForPlayer(*CSH->client->getPlayerSettings(elem.first), false);
auto AiToGive = CSH->client->aiNameForPlayer(*CSH->client->getPlayerSettings(elem.first), false, false);
printCommandMessage("Player " + elem.first.getStr() + " will be lead by " + AiToGive, ELogLevel::INFO);
CSH->client->installNewPlayerInterface(CDynLibHandler::getNewAI(AiToGive), elem.first);
}