diff options
author | rubidium <rubidium@openttd.org> | 2008-04-06 15:09:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-06 15:09:45 +0000 |
commit | 53d101cc992ff7e5a4839e0598b1b88170300e74 (patch) | |
tree | 902d510152ab0f94357b64fda309b662a1637e12 /src/industry_cmd.cpp | |
parent | e150643d319c82c54a8246b0aeb8c30a6f2a52d5 (diff) | |
download | openttd-53d101cc992ff7e5a4839e0598b1b88170300e74.tar.xz |
(svn r12593) -Codechange: hide Order's flags in most of the code.
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 abba55152..568ea1918 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1967,13 +1967,13 @@ int WhoCanServiceIndustry(Industry* ind) */ const Order *o; FOR_VEHICLE_ORDERS(v, o) { - if (o->IsType(OT_GOTO_STATION) && !HasBit(o->flags, OF_TRANSFER)) { + if (o->IsType(OT_GOTO_STATION) && !HasBit(o->GetUnloadType(), OF_TRANSFER)) { /* Vehicle visits a station to load or unload */ Station *st = GetStation(o->GetDestination()); if (!st->IsValid()) continue; /* Same cargo produced by industry is dropped here => not serviced by vehicle v */ - if (HasBit(o->flags, OF_UNLOAD) && !c_accepts) break; + if (HasBit(o->GetUnloadType(), OF_UNLOAD) && !c_accepts) break; if (stations.find(st) != stations.end()) { if (v->owner == _local_player) return 2; // Player services industry |