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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user