summaryrefslogtreecommitdiff
path: root/src/town_cmd.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/town_cmd.cpp
parent1c0ba07c3cb4f393b56063e2d631fbb2d73219b1 (diff)
downloadopenttd-a82572d0f5a55a33df4163b429f891ea76ed92a7.tar.xz
Codechange: remove has_newhouses global
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 9372d3711..39dfa7db1 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2492,8 +2492,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
if (t->cache.building_counts.id_count[i] == UINT16_MAX) continue;
}
- /* Without NewHouses, all houses have probability '1' */
- uint cur_prob = (_loaded_newgrf_features.has_newhouses ? hs->probability : 1);
+ uint cur_prob = hs->probability;
probability_max += cur_prob;
probs[num] = cur_prob;
houses[num++] = (HouseID)i;
@@ -2526,8 +2525,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
const HouseSpec *hs = HouseSpec::Get(house);
- if (_loaded_newgrf_features.has_newhouses && !_generating_world &&
- _game_mode != GM_EDITOR && (hs->extra_flags & BUILDING_IS_HISTORICAL) != 0) {
+ if (!_generating_world && _game_mode != GM_EDITOR && (hs->extra_flags & BUILDING_IS_HISTORICAL) != 0) {
continue;
}