summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-26 14:02:27 +0000
committersmatz <smatz@openttd.org>2009-06-26 14:02:27 +0000
commitb668c24d463ca8059fd9be59efddb39298de9646 (patch)
tree5fbd935d6d1dc65d5ebc160333b25c09e2e5b6c7 /src/saveload
parentaf78d6a9bbc4142958f07b8774ef28d0b7c22f49 (diff)
downloadopenttd-b668c24d463ca8059fd9be59efddb39298de9646.tar.xz
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/town_sl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp
index 98264382a..67e9486e2 100644
--- a/src/saveload/town_sl.cpp
+++ b/src/saveload/town_sl.cpp
@@ -35,7 +35,7 @@ void UpdateHousesAndTowns()
if (!IsTileType(t, MP_HOUSE)) continue;
house_id = GetHouseType(t);
- if (!GetHouseSpecs(house_id)->enabled && house_id >= NEW_HOUSE_OFFSET) {
+ if (!HouseSpec::Get(house_id)->enabled && house_id >= NEW_HOUSE_OFFSET) {
/* The specs for this type of house are not available any more, so
* replace it with the substitute original house type. */
house_id = _house_mngr.GetSubstituteID(house_id);
@@ -44,7 +44,7 @@ void UpdateHousesAndTowns()
town = Town::GetByTile(t);
IncreaseBuildingCount(town, house_id);
- if (IsHouseCompleted(t)) town->population += GetHouseSpecs(house_id)->population;
+ if (IsHouseCompleted(t)) town->population += HouseSpec::Get(house_id)->population;
/* Increase the number of houses for every house, but only once. */
if (GetHouseNorthPart(house_id) == 0) town->num_houses++;