diff options
author | belugas <belugas@openttd.org> | 2007-10-03 00:57:54 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-10-03 00:57:54 +0000 |
commit | 7525f791c7c6048662c974a5c71a9f3243197965 (patch) | |
tree | c4c22d197eb88cf2fc8ecb3bbc821c497a1dcbaf /src/industry_cmd.cpp | |
parent | dca398e9a6db5f0366c53b2d7a115814d5090a72 (diff) | |
download | openttd-7525f791c7c6048662c974a5c71a9f3243197965.tar.xz |
(svn r11197) -Fix: It is not useful to reset the override of an entity every time a new grf file is been submitted.
Since newhouses showed the way to newindustries(meaning I copied/adapted a lot of code and processes from it), the behaviour was there for newhouses too.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 2f438cfa8..8f2753228 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -71,6 +71,10 @@ void ResetIndustries() memset(&_industry_tile_specs, 0, sizeof(_industry_tile_specs)); memcpy(&_industry_tile_specs, &_origin_industry_tile_specs, sizeof(_origin_industry_tile_specs)); + + /* Reset any overrides that have been set. */ + _industile_mngr.ResetOverride(); + _industry_mngr.ResetOverride(); } void ResetIndustryCreationProbility(IndustryType type) |