1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

initTowns: only add Tovern by default to player-owned towns

Neutral towns with default buildings set should never get Tovern automatically.
This one fixes issue 2090.
This commit is contained in:
ArseniyShestakov
2015-03-12 18:47:32 +03:00
parent d8114fa3fb
commit 32009690eb

View File

@ -1741,7 +1741,9 @@ void CGameState::initTowns()
{
vti->builtBuildings.erase(BuildingID::DEFAULT);
vti->builtBuildings.insert(BuildingID::VILLAGE_HALL);
vti->builtBuildings.insert(BuildingID::TAVERN);
if(vti->tempOwner != PlayerColor::NEUTRAL)
vti->builtBuildings.insert(BuildingID::TAVERN);
vti->builtBuildings.insert(BuildingID::DWELL_FIRST);
if(rand.nextInt(1) == 1)
{