Skip to content

Commit

Permalink
Challenges: Allow AI scripts for specific players to be entirely turn…
Browse files Browse the repository at this point in the history
…ed off.
  • Loading branch information
perim committed Jan 14, 2012
1 parent 10faa4c commit 291ca23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/multiint.cpp
Expand Up @@ -313,8 +313,13 @@ void loadMultiScripts()
challenge.beginGroup("player_" + QString::number(i + 1));
if (challenge.contains("ai"))
{
loadPlayerScript("multiplay/skirmish/" + challenge.value("ai").toString(), i, NetPlay.players[i].difficulty);
QString val = challenge.value("ai").toString();
challenge.endGroup();
if (val.compare("null") == 0)
{
continue; // no AI
}
loadPlayerScript("multiplay/skirmish/" + val, i, NetPlay.players[i].difficulty);
continue;
}
challenge.endGroup();
Expand Down

0 comments on commit 291ca23

Please sign in to comment.