summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-10 08:30:15 +0000
committerrubidium <rubidium@openttd.org>2008-04-10 08:30:15 +0000
commite61dcab79d9dc3eba0b24094ee108606c970eac2 (patch)
tree81b8383f4d20454c1546e1f654d36905a9980922 /src/vehicle.cpp
parent79cb5ec1c70e1661db721a9b5a1e21a375989a30 (diff)
downloadopenttd-e61dcab79d9dc3eba0b24094ee108606c970eac2.tar.xz
(svn r12648) -Feature: allow four different non-stop types in a single game instead of two. The "TTDP compatible order" setting now only sets the default behaviour of new trains.
-Feature: allow three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 60f212b2d..89cfe1b5b 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -3103,7 +3103,7 @@ void Load_VEHS()
/* Convert the current_order.type (which is a mix of type and flags, because
* in those versions, they both were 4 bits big) to type and flags */
v->current_order.flags = GB(v->current_order.type, 4, 4);
- v->current_order.type.m_val &= 0x0F;
+ v->current_order.type &= 0x0F;
}
/* Advanced vehicle lists got added */
@@ -3138,6 +3138,9 @@ void Vehicle::BeginLoading()
if (this->current_order.IsType(OT_GOTO_STATION) &&
this->current_order.GetDestination() == this->last_station_visited) {
+ current_order.MakeLoading(true);
+ UpdateVehicleTimetable(this, true);
+
/* Furthermore add the Non Stop flag to mark that this station
* is the actual destination of the vehicle, which is (for example)
* necessary to be known for HandleTrainLoading to determine
@@ -3145,10 +3148,7 @@ void Vehicle::BeginLoading()
* that arrives at random stations is bad. */
this->current_order.SetNonStopType(ONSF_NO_STOP_AT_ANY_STATION);
- current_order.MakeLoading(true);
- UpdateVehicleTimetable(this, true);
} else {
- this->current_order.SetNonStopType(ONSF_STOP_EVERYWHERE);
current_order.MakeLoading(false);
}