Browse Source

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.
ArseniyShestakov 10 years ago
parent
commit
32009690eb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/CGameState.cpp

+ 3 - 1
lib/CGameState.cpp

@@ -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)
 			{