summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 22:57:37 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commitbd87f113555f2b0f9a70d14fd67fd2e6b1e8809d (patch)
tree2b08efd85a7037991df3d359d808ce501fc28f16 /src/settings_type.h
parenta5681d3ebac3c791c230bffb5eceac00222b2e01 (diff)
downloadopenttd-bd87f113555f2b0f9a70d14fd67fd2e6b1e8809d.tar.xz
Codechange: Remove DistributionTypeByte
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index 83d909130..f2fbd283c 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -493,16 +493,16 @@ struct EconomySettings {
};
struct LinkGraphSettings {
- uint16 recalc_time; ///< time (in days) for recalculating each link graph component.
- uint16 recalc_interval; ///< time (in days) between subsequent checks for link graphs to be calculated.
- DistributionTypeByte distribution_pax; ///< distribution type for passengers
- DistributionTypeByte distribution_mail; ///< distribution type for mail
- DistributionTypeByte distribution_armoured; ///< distribution type for armoured cargo class
- DistributionTypeByte distribution_default; ///< distribution type for all other goods
- uint8 accuracy; ///< accuracy when calculating things on the link graph. low accuracy => low running time
- uint8 demand_size; ///< influence of supply ("station size") on the demand function
- uint8 demand_distance; ///< influence of distance between stations on the demand function
- uint8 short_path_saturation; ///< percentage up to which short paths are saturated before saturating most capacious paths
+ uint16 recalc_time; ///< time (in days) for recalculating each link graph component.
+ uint16 recalc_interval; ///< time (in days) between subsequent checks for link graphs to be calculated.
+ DistributionType distribution_pax; ///< distribution type for passengers
+ DistributionType distribution_mail; ///< distribution type for mail
+ DistributionType distribution_armoured; ///< distribution type for armoured cargo class
+ DistributionType distribution_default; ///< distribution type for all other goods
+ uint8 accuracy; ///< accuracy when calculating things on the link graph. low accuracy => low running time
+ uint8 demand_size; ///< influence of supply ("station size") on the demand function
+ uint8 demand_distance; ///< influence of distance between stations on the demand function
+ uint8 short_path_saturation; ///< percentage up to which short paths are saturated before saturating most capacious paths
inline DistributionType GetDistributionType(CargoID cargo) const {
if (IsCargoInClass(cargo, CC_PASSENGERS)) return this->distribution_pax;