summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-29 18:21:24 +0000
committerrubidium <rubidium@openttd.org>2007-04-29 18:21:24 +0000
commit6440440f129041fbb60d25fbfb182a68c82f17a2 (patch)
tree87b202dc9547deba8ff9f14dc895001e6404777e /src/train_cmd.cpp
parentbf04c88ecad4d4a183ebf8461f1d58fa57d658ae (diff)
downloadopenttd-6440440f129041fbb60d25fbfb182a68c82f17a2.tar.xz
(svn r9752) -Codechange: remove some duplication related to BeginLoading.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index c3eedc2c5..6de1b96e0 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2634,19 +2634,7 @@ static void TrainEnterStation(Vehicle *v, StationID station)
);
}
- /* Did we reach the final destination? */
- if (v->current_order.type == OT_GOTO_STATION &&
- v->current_order.dest == station) {
- /* Yeah, keep the load/unload flags
- * Non Stop now means if the order should be increased. */
- v->BeginLoading();
- v->current_order.flags &= OF_FULL_LOAD | OF_UNLOAD | OF_TRANSFER;
- v->current_order.flags |= OF_NON_STOP;
- } else {
- /* No, just do a simple load */
- v->BeginLoading();
- v->current_order.flags = 0;
- }
+ v->BeginLoading();
v->current_order.dest = 0;
SET_EXPENSES_TYPE(EXPENSES_TRAIN_INC);