Also remove disabled players from skirmish games with scavengers turned on.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9725 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-02-07 18:11:15 +00:00 committed by Git SVN Gateway
parent 44d6340eac
commit 6b22f1855d
1 changed files with 7 additions and 10 deletions

View File

@ -537,20 +537,17 @@ static BOOL gameInit(void)
cleanMap(player);
}
// Remove baba player for skirmish
if (!game.scavengers)
for (player = 1; player < MAX_PLAYERS; player++)
{
for (player = 1; player < MAX_PLAYERS; player++)
// we want to remove disabled AI & all the other players that don't belong
if ((game.skDiff[player] == 0 || player >= game.maxPlayers) && (!game.scavengers || player != 7))
{
// we want to remove disabled AI & all the other players that don't belong
if (game.skDiff[player] == 0 || player >= game.maxPlayers)
{
clearPlayer(player, true, false);
debug(LOG_NET, "Removing disabled AI (%d) from map.", player);
}
clearPlayer(player, true, false);
debug(LOG_NET, "removing disabled AI (%d) from map.", player);
}
}
else
if (game.scavengers) // FIXME - not sure if we still need this hack - Per
{
// ugly hack for now
game.skDiff[7] = DIFF_SLIDER_STOPS / 2;