forked from mirror/OpenTTD
(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user