diff options
author | peter1138 <peter1138@openttd.org> | 2008-05-21 12:06:05 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-05-21 12:06:05 +0000 |
commit | 510c0acb4aa1c6179857f5d1824828b7f2fbdc6c (patch) | |
tree | 3464efc29253f5fc621e220954d19cca7ae3d056 /src/industry_cmd.cpp | |
parent | 621e205f747fef62779f6ca5bd8a1a9b9a4c9664 (diff) | |
download | openttd-510c0acb4aa1c6179857f5d1824828b7f2fbdc6c.tar.xz |
(svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index c07244978..a889d08ed 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1953,10 +1953,9 @@ int WhoCanServiceIndustry(Industry* ind) bool c_accepts = false; bool c_produces = false; if (v->type == VEH_TRAIN && IsFrontEngine(v)) { - const Vehicle *u = v; - BEGIN_ENUM_WAGONS(u) + for (const Vehicle *u = v; u != NULL; u = u->Next()) { CanCargoServiceIndustry(u->cargo_type, ind, &c_accepts, &c_produces); - END_ENUM_WAGONS(u) + } } else if (v->type == VEH_ROAD || v->type == VEH_SHIP || v->type == VEH_AIRCRAFT) { CanCargoServiceIndustry(v->cargo_type, ind, &c_accepts, &c_produces); } else { |