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 | f7b79916e88cad5f25999a9006b67c25347bd569 (patch) | |
tree | 995aadb7b724c94354b6a56dab399357bd204c3c /src/industry_cmd.cpp | |
parent | e40c7f66d889ba0f78867b26d8ccaf71d07b0574 (diff) | |
download | openttd-f7b79916e88cad5f25999a9006b67c25347bd569.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 } |