diff options
author | Yexo <yexo@openttd.org> | 2020-05-29 22:31:14 +0200 |
---|---|---|
committer | Yexo <t.marinussen@gmail.com> | 2020-06-01 22:46:06 +0200 |
commit | a82572d0f5a55a33df4163b429f891ea76ed92a7 (patch) | |
tree | ac9b921fccd960c674c01a5392803ef106e03d25 /src/newgrf_house.cpp | |
parent | 1c0ba07c3cb4f393b56063e2d631fbb2d73219b1 (diff) | |
download | openttd-a82572d0f5a55a33df4163b429f891ea76ed92a7.tar.xz |
Codechange: remove has_newhouses global
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index b585a682d..544f346e0 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -108,8 +108,6 @@ void IncreaseBuildingCount(Town *t, HouseID house_id) { HouseClassID class_id = HouseSpec::Get(house_id)->class_id; - if (!_loaded_newgrf_features.has_newhouses) return; - t->cache.building_counts.id_count[house_id]++; _building_counts.id_count[house_id]++; @@ -129,8 +127,6 @@ void DecreaseBuildingCount(Town *t, HouseID house_id) { HouseClassID class_id = HouseSpec::Get(house_id)->class_id; - if (!_loaded_newgrf_features.has_newhouses) return; - if (t->cache.building_counts.id_count[house_id] > 0) t->cache.building_counts.id_count[house_id]--; if (_building_counts.id_count[house_id] > 0) _building_counts.id_count[house_id]--; |