(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation

-Codechange: rewrite parts of code responsible for caching index of nearest town
This commit is contained in:
smatz
2008-11-18 22:43:59 +00:00
parent e1a36e90a4
commit 07e3c096b3
7 changed files with 70 additions and 41 deletions

View File

@@ -2563,7 +2563,7 @@ bool AfterLoadGame()
if (CheckSavegameVersion(103)) {
/* Non-town-owned roads now store the closest town */
InvalidateTownForRoadTile();
UpdateNearestTownForRoadTiles(false);
/* signs with invalid owner left from older savegames */
Sign *si;