File diff r27044:c3ed341659bd → r27045:822ceeea88a2
src/road.cpp
Show inline comments
 
@@ -283,13 +283,13 @@ RoadTypes ExistingRoadTypes(CompanyID c)
 
	/* Find used roadtypes */
 
	for (Engine *e : Engine::IterateType(VEH_ROAD)) {
 
		/* Check if the roadtype can be used in the current climate */
 
		if (!HasBit(e->info.climates, _settings_game.game_creation.landscape)) continue;
 

	
 
		/* Check whether available for all potential companies */
 
		if (e->company_avail != (CompanyMask)-1) continue;
 
		if (e->company_avail != MAX_UVALUE(CompanyMask)) continue;
 

	
 
		known_roadtypes |= GetRoadTypeInfo(e->u.road.roadtype)->introduces_roadtypes;
 
	}
 

	
 
	/* Get the date introduced roadtypes as well. */
 
	known_roadtypes = AddDateIntroducedRoadTypes(known_roadtypes, MAX_DAY);