From 0bcfe0361a890a7d39c8052a9b320c61a34808ac Mon Sep 17 00:00:00 2001 From: Andrettin Date: Mon, 30 Nov 2015 15:36:18 +0100 Subject: [PATCH] Reverted dock-related grand strategy changes for patch 1.7.2 --- src/stratagus/grand_strategy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stratagus/grand_strategy.cpp b/src/stratagus/grand_strategy.cpp index 0e5db99a3..f0f9e9464 100644 --- a/src/stratagus/grand_strategy.cpp +++ b/src/stratagus/grand_strategy.cpp @@ -1523,7 +1523,7 @@ void WorldMapTile::SetPort(bool has_port) if (civilization != -1) { int building_type = GrandStrategyGame.Provinces[this->Province]->GetClassUnitType(GetUnitTypeClassIndexByName("dock")); if (building_type != -1) { - GrandStrategyGame.Provinces[this->Province]->SetSettlementBuilding(building_type, has_port); +// GrandStrategyGame.Provinces[this->Province]->SetSettlementBuilding(building_type, has_port); } } } @@ -1674,7 +1674,7 @@ void CProvince::SetOwner(int civilization_id, int faction_id) if (GrandStrategyGame.WorldMapTiles[this->SettlementLocation.x][this->SettlementLocation.y]->Port) { int dock_building_type = this->GetClassUnitType(GetUnitTypeClassIndexByName("dock")); if (dock_building_type != -1) { - this->SetSettlementBuilding(dock_building_type, true); +// this->SetSettlementBuilding(dock_building_type, true); } } } @@ -1873,7 +1873,7 @@ void CProvince::SetSettlementBuilding(int building_id, bool has_settlement_build if (UnitTypes[building_id]->Class == "stronghold") { //increase the military score of the province, if this building is a stronghold this->MilitaryScore += (100 * 2) * change; // two guard towers if has a stronghold - } else if (UnitTypes[building_id]->Class == "dock") { + } else if (UnitTypes[building_id]->Class == "town-hall") { //place a port in the province's settlement location, if the building is a dock GrandStrategyGame.WorldMapTiles[this->SettlementLocation.x][this->SettlementLocation.y]->Port = has_settlement_building;