Mercurial > hg > openttd
changeset 7152:70c7afefcca5 draft
(svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game.
author | belugas <belugas@openttd.org> |
---|---|
date | Wed, 04 Jul 2007 01:34:28 +0000 |
parents | df7a8a73bc82 |
children | dce496e685e5 |
files | src/openttd.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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);