diff options
author | rubidium <rubidium@openttd.org> | 2008-04-07 08:59:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-07 08:59:04 +0000 |
commit | c57a1d74c3e083a24505fad78ce216500adf82ee (patch) | |
tree | e49996b3a01b39c141422d537b97922f7c2956ee /src/roadveh_cmd.cpp | |
parent | 6af1fb2bdd32898d9456174d99413adf3e466797 (diff) | |
download | openttd-c57a1d74c3e083a24505fad78ce216500adf82ee.tar.xz |
(svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 2312951f7..4eceebb64 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1929,7 +1929,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v) } if (v->current_order.IsType(OT_GOTO_DEPOT) && - v->current_order.GetNonStopType() & OFB_NON_STOP && + v->current_order.GetNonStopType() & ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS && !Chance16(1, 20)) { return; } |