1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Remove unused placeholdedHeroes field

This commit is contained in:
AlexVinS 2016-02-21 22:12:58 +03:00
parent 53b5587c2e
commit 4ebafa17b4
2 changed files with 10 additions and 5 deletions

View File

@ -259,7 +259,7 @@ public:
std::vector<PlayerInfo> players; /// The default size of the vector is PlayerColor::PLAYER_LIMIT.
ui8 howManyTeams;
std::vector<bool> allowedHeroes;
std::vector<ui16> placeholdedHeroes;
bool areAnyPlayers; /// Unused. True if there are any playable players on the map.
/// "main quests" of the map that describe victory and loss conditions

View File

@ -615,10 +615,15 @@ void CMapLoaderH3M::readAllowedHeroes()
if(mapHeader->version > EMapFormat::ROE)
{
int placeholdersQty = reader.readUInt32();
for(int p = 0; p < placeholdersQty; ++p)
{
mapHeader->placeholdedHeroes.push_back(reader.readUInt8());
}
reader.skip(placeholdersQty * 1);
// std::vector<ui16> placeholdedHeroes;
//
// for(int p = 0; p < placeholdersQty; ++p)
// {
// placeholdedHeroes.push_back(reader.readUInt8());
// }
}
}