We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a2f1b3 commit 527e596Copy full SHA for 527e596
1 file changed
libs/s25main/network/GameClient.cpp
@@ -1872,9 +1872,14 @@ void GameClient::ToggleHumanAIPlayer(const AI::Info& aiInfo)
1872
auto it = helpers::find_if(game->aiPlayers_,
1873
[id = this->GetPlayerId()](const auto& player) { return player.GetPlayerId() == id; });
1874
if(it != game->aiPlayers_.end())
1875
+ {
1876
game->aiPlayers_.erase(it);
- else
1877
+ SystemChat(_("Disabled AI for current player"));
1878
+ } else
1879
1880
game->AddAIPlayer(CreateAIPlayer(GetPlayerId(), aiInfo));
1881
+ SystemChat(_("Enabled AI for current player"));
1882
+ }
1883
}
1884
1885
void GameClient::RequestSwapToPlayer(const unsigned char newId)
0 commit comments