summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2020-05-29 22:31:14 +0200
committerYexo <t.marinussen@gmail.com>2020-06-01 22:46:06 +0200
commita82572d0f5a55a33df4163b429f891ea76ed92a7 (patch)
treeac9b921fccd960c674c01a5392803ef106e03d25 /src/newgrf_house.cpp
parent1c0ba07c3cb4f393b56063e2d631fbb2d73219b1 (diff)
downloadopenttd-a82572d0f5a55a33df4163b429f891ea76ed92a7.tar.xz
Codechange: remove has_newhouses global
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp4
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]--;