diff options
author | frosch <frosch@openttd.org> | 2010-09-05 13:31:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-05 13:31:39 +0000 |
commit | 42a996ec23f15e74c0fe5ba0fdd5ac992456e7ac (patch) | |
tree | 201bd6edb559d4b61be8eeba31cf147a7660c189 /src/industry_cmd.cpp | |
parent | ce1cae81ea55ff6bc45d4e2ed11d5c487ac6ba07 (diff) | |
download | openttd-42a996ec23f15e74c0fe5ba0fdd5ac992456e7ac.tar.xz |
(svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 29cf766fe..fcd6fafca 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1695,7 +1695,7 @@ static CommandCost CreateNewIndustryHelper(TileIndex tile, IndustryType type, Do *ip = NULL; - SmallVector<TileArea, 1> object_areas(_cleared_object_areas); + SmallVector<ClearedObjectArea, 1> object_areas(_cleared_object_areas); CommandCost ret = CheckIfIndustryTilesAreFree(tile, it, itspec_index, type, random_initial_bits, founder, &custom_shape_check); _cleared_object_areas = object_areas; if (ret.Failed()) return ret; @@ -1797,7 +1797,7 @@ CommandCost CmdBuildIndustry(TileIndex tile, DoCommandFlag flags, uint32 p1, uin if (num >= count) return CMD_ERROR; CommandCost ret = CommandCost(STR_ERROR_SITE_UNSUITABLE); - SmallVector<TileArea, 1> object_areas(_cleared_object_areas); + SmallVector<ClearedObjectArea, 1> object_areas(_cleared_object_areas); do { if (--count < 0) return ret; if (--num < 0) num = indspec->num_table - 1; |