mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Unused variable, unused code
This commit is contained in:
parent
80198f21d8
commit
6e7b68d0e6
@ -264,7 +264,7 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
|
||||
}
|
||||
else // Random
|
||||
{
|
||||
vstd::erase_if(compCountAllowed, [playerLimit, humanOrCpuPlayerCount](int el)
|
||||
vstd::erase_if(compCountAllowed, [playerLimit](int el)
|
||||
{
|
||||
return (playerLimit - 1) < el; // Must leave at least 1 human player
|
||||
});
|
||||
|
@ -347,31 +347,6 @@ void CMapGenOptions::resetPlayersMap()
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(int color = 0; color < totalPlayersLimit; ++color)
|
||||
{
|
||||
CPlayerSettings player;
|
||||
auto pc = PlayerColor(color);
|
||||
player.setColor(pc);
|
||||
auto playerType = EPlayerType::AI;
|
||||
if (getPlayerCount() != RANDOM_SIZE && color < realPlayersCnt)
|
||||
{
|
||||
playerType = EPlayerType::HUMAN;
|
||||
}
|
||||
else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
|
||||
|| (compOnlyPlayerCount != RANDOM_SIZE && color >= (PlayerColor::PLAYER_LIMIT_I-compOnlyPlayerCount)))
|
||||
{
|
||||
//FIXME: Allow humans to choose any color, even from the end of the list
|
||||
playerType = EPlayerType::COMP_ONLY;
|
||||
}
|
||||
player.setPlayerType(playerType);
|
||||
player.setTeam(rememberTeam[pc]);
|
||||
players[pc] = player;
|
||||
|
||||
if (vstd::contains(rememberTownTypes, pc))
|
||||
players[pc].setStartingTown(rememberTownTypes[pc]);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void CMapGenOptions::savePlayersMap()
|
||||
|
Loading…
Reference in New Issue
Block a user