diff options
author | dP <dp@dpointer.org> | 2020-05-18 16:12:20 +0300 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-06-28 18:23:59 +0200 |
commit | 380fd8cab41bce0954bcd38eba5befe7057c8fa2 (patch) | |
tree | cda207cc0b27766bcfb388eeecdccea7281e7f4b /src/subsidy_base.h | |
parent | ca2604c4e2cc972c2081db91a5e7b0bcdd092203 (diff) | |
download | openttd-380fd8cab41bce0954bcd38eba5befe7057c8fa2.tar.xz |
Fix: Make subsidies scan tiles for town acceptance and production instead of using desync-prone town caches
Diffstat (limited to 'src/subsidy_base.h')
-rw-r--r-- | src/subsidy_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/subsidy_base.h b/src/subsidy_base.h index ef26f6416..ef9276433 100644 --- a/src/subsidy_base.h +++ b/src/subsidy_base.h @@ -57,5 +57,6 @@ static const uint SUBSIDY_PAX_MIN_POPULATION = 400; ///< Min. population of to static const uint SUBSIDY_CARGO_MIN_POPULATION = 900; ///< Min. population of destination town for cargo route static const uint SUBSIDY_MAX_PCT_TRANSPORTED = 42; ///< Subsidy will be created only for towns/industries with less % transported static const uint SUBSIDY_MAX_DISTANCE = 70; ///< Max. length of subsidised route (DistanceManhattan) +static const uint SUBSIDY_TOWN_CARGO_RADIUS = 6; ///< Extent of a tile area around town center when scanning for town cargo acceptance and production (6 ~= min catchmement + min station / 2) #endif /* SUBSIDY_BASE_H */ |