Loading

Revision differences

Old revision #puwkoudktNew revision #pf3etzgbs
1        if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {  1        if (!AIRoad.AreRoadTilesConnected(prev_tile, new_tile)) {  
2            if (!(AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile) ||  2            if (AIRoad.IsRoadTile(new_tile) || AIBridge.IsBridgeTile(new_tile) || AITunnel.IsTunnelTile(new_tile) ||
3                    (AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile)) && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF))) {  3                    (AIRoad.IsRoadStationTile(new_tile) || AIRoad.IsRoadDepotTile(new_tile)) && AITile.GetOwner(new_tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) {
   4                cost += self._cost_no_existing_road;
   5            } else {
4                cost += self._cost_no_existing_road * 2;  6                cost += self._cost_no_existing_road * 2;  
5            } else {    
6                cost += self._cost_no_existing_road;    
7            }  7            }  
8        } 8        }