Skip to content

Commit

Permalink
disabled hard ai
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed May 9, 2021
1 parent db203bc commit e78c25b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions objects/playerselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ void PlayerSelection::showPlayerSelection()
}
QVector<QString> defaultAiList = {tr("Human"), tr("Very Easy"), tr("Normal"), tr("Normal Off."), tr("Normal Def.")}; // // heavy ai disabled cause it's not finished
Interpreter* pInterpreter = Interpreter::getInstance();
GameManager* pGameManager = GameManager::getInstance();
for (qint32 i = 0; i < pGameManager->getHeavyAiCount(); ++i)
{
QString id = pGameManager->getHeavyAiID(i);
QJSValue aiName = pInterpreter->doFunction(id, "getName");
defaultAiList.append(aiName.toString());
}
// GameManager* pGameManager = GameManager::getInstance();
// for (qint32 i = 0; i < pGameManager->getHeavyAiCount(); ++i)
// {
// QString id = pGameManager->getHeavyAiID(i);
// QJSValue aiName = pInterpreter->doFunction(id, "getName");
// defaultAiList.append(aiName.toString());
// }
defaultAiList.append(tr("Closed"));

QVector<QString> aiList = defaultAiList;
Expand Down

0 comments on commit e78c25b

Please sign in to comment.