# HG changeset patch # User belugas # Date 1183512868 0 # Node ID 89373fa66dc578fceb1b39295003cdab5b072cc8 # Parent 3b57351634a8a292fa2bfebe3c78295d37c9d3a0 (svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game. diff -r 3b57351634a8 -r 89373fa66dc5 src/openttd.cpp --- a/src/openttd.cpp Wed Jul 04 00:54:38 2007 +0000 +++ b/src/openttd.cpp Wed Jul 04 01:34:28 2007 +0000 @@ -286,6 +286,8 @@ /* Dynamic stuff needs to be initialized somewhere... */ _town_sort = NULL; _industry_sort = NULL; + _industry_mngr.ResetMapping(); + _industile_mngr.ResetMapping(); } @@ -704,6 +706,8 @@ ResetGRFConfig(true); _house_mngr.ResetMapping(); + _industile_mngr.ResetMapping(); + _industry_mngr.ResetMapping(); GenerateWorldSetCallback(&MakeNewGameDone); GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _patches.map_x, 1 << _patches.map_y);