mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Add workaround for strange/unknown hota h3m quirk
This commit is contained in:
@ -252,7 +252,12 @@ void CMapLoaderH3M::readPlayerInfo()
|
||||
const bool allFactionsAllowed = playerInfo.isFactionRandom && allowedFactions.size() == features.factionsCount;
|
||||
|
||||
if(!allFactionsAllowed)
|
||||
playerInfo.allowedFactions = allowedFactions;
|
||||
{
|
||||
if (!allowedFactions.empty())
|
||||
playerInfo.allowedFactions = allowedFactions;
|
||||
else
|
||||
logGlobal->warn("Map '%s': Player %d has no allowed factions to play! Ignoring.", mapName, i);
|
||||
}
|
||||
|
||||
playerInfo.hasMainTown = reader->readBool();
|
||||
if(playerInfo.hasMainTown)
|
||||
|
Reference in New Issue
Block a user