diff options
author | skidd13 <skidd13@openttd.org> | 2008-03-18 12:28:21 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-03-18 12:28:21 +0000 |
commit | a887b79f904ffea8138877feddf138400bf46eaa (patch) | |
tree | 3635265faa97c3ae592a1ad08aee603ada1d45f0 /src/openttd.cpp | |
parent | 985dbaa093a9310bf176fb82a277ca858872aa3f (diff) | |
download | openttd-a887b79f904ffea8138877feddf138400bf46eaa.tar.xz |
(svn r12381) -Fix [FS1835] [FS1535] (r11855): The number of houses wasn't computed right. A few other things regaring the updating had to be changed. Big thanks for support to frosch123 and SmatZ, to name just a few. (Inspired by a patch of bilbo)
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 98975a36d..d4dc25aaa 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1348,9 +1348,9 @@ bool AfterLoadGame() if (CheckSavegameVersionOldStyle(6, 1)) UpdateSignOwner(); /* In old version there seems to be a problem that water is owned by - OWNER_NONE, not OWNER_WATER.. I can't replicate it for the current - (4.3) version, so I just check when versions are older, and then - walk through the whole map.. */ + * OWNER_NONE, not OWNER_WATER.. I can't replicate it for the current + * (4.3) version, so I just check when versions are older, and then + * walk through the whole map.. */ if (CheckSavegameVersionOldStyle(4, 3)) { for (TileIndex t = 0; t < map_size; t++) { if (IsTileType(t, MP_WATER) && GetTileOwner(t) >= MAX_PLAYERS) { @@ -2034,8 +2034,8 @@ bool AfterLoadGame() } } - /* Check that house ids are still valid. */ - CheckHouseIDs(); + /* Check and update house and town values */ + UpdateHousesAndTowns(); if (CheckSavegameVersion(43)) { for (TileIndex t = 0; t < map_size; t++) { @@ -2461,8 +2461,8 @@ void ReloadNewGRFData() /* update station and waypoint graphics */ AfterLoadWaypoints(); AfterLoadStations(); - /* check that house ids are still valid */ - CheckHouseIDs(); + /* Check and update house and town values */ + UpdateHousesAndTowns(); /* redraw the whole screen */ MarkWholeScreenDirty(); } |