diff options
author | belugas <belugas@openttd.org> | 2008-06-03 02:20:27 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-03 02:20:27 +0000 |
commit | b0ada3fbbf25693675a18e3360657816ed5cf2ca (patch) | |
tree | 995aadb7b724c94354b6a56dab399357bd204c3c /src/industry_cmd.cpp | |
parent | 00851610e1e64d8b5e759c425bfd4ddbf8f504ee (diff) | |
download | openttd-b0ada3fbbf25693675a18e3360657816ed5cf2ca.tar.xz |
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 0bf658cdc..ae2322fdf 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -995,7 +995,7 @@ static void ChopLumberMillTrees(Industry *i) if (!IsIndustryCompleted(tile)) return; ///< Can't proceed if not completed - if (CircularTileSearch(tile, 40, SearchLumberMillTrees, 0)) ///< 40x40 tiles to search + if (CircularTileSearch(&tile, 40, SearchLumberMillTrees, 0)) ///< 40x40 tiles to search i->produced_cargo_waiting[0] = min(0xffff, i->produced_cargo_waiting[0] + 45); ///< Found a tree, add according value to waiting cargo } |