diff options
author | glx <glx@openttd.org> | 2019-12-17 21:22:15 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | 0b489f99249a8c62ee3826e490ed17f29377581c (patch) | |
tree | c5289a92bbb98d40d38e3320276e6e02f732f633 /src/subsidy_base.h | |
parent | 847e5f33d4749568cda696b8940ec10b540bd6fb (diff) | |
download | openttd-0b489f99249a8c62ee3826e490ed17f29377581c.tar.xz |
Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops
Diffstat (limited to 'src/subsidy_base.h')
-rw-r--r-- | src/subsidy_base.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/subsidy_base.h b/src/subsidy_base.h index 4f79339a9..ef26f6416 100644 --- a/src/subsidy_base.h +++ b/src/subsidy_base.h @@ -58,7 +58,4 @@ static const uint SUBSIDY_CARGO_MIN_POPULATION = 900; ///< Min. population of de 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) -#define FOR_ALL_SUBSIDIES_FROM(var, start) FOR_ALL_ITEMS_FROM(Subsidy, subsidy_index, var, start) -#define FOR_ALL_SUBSIDIES(var) FOR_ALL_SUBSIDIES_FROM(var, 0) - #endif /* SUBSIDY_BASE_H */ |