summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-05-01 14:48:44 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-05-01 14:48:44 +0000
commitc915d9fa55e8bb42b33c56b94c5a5e0ff446d7da (patch)
treed908c9f08f9ba22552bb21121936e5d279e00c4b /src/order_gui.cpp
parent4ef537ba338c44a84b4defcce5aa24554edcde22 (diff)
downloadopenttd-c915d9fa55e8bb42b33c56b94c5a5e0ff446d7da.tar.xz
(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index ac248f878..d5e5c5a2d 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -266,9 +266,9 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
if (timetable) {
SetDParam(3, STR_EMPTY);
- if (order->wait_time > 0) {
+ if (order->GetWaitTime() > 0) {
SetDParam(5, STR_TIMETABLE_STAY_FOR);
- SetTimetableParams(6, 7, order->wait_time);
+ SetTimetableParams(6, 7, order->GetWaitTime());
}
} else {
SetDParam(3, (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) ? STR_EMPTY : _station_load_types[order->IsRefit()][unload][load]);
@@ -334,9 +334,9 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
SetDParam(4, value);
}
- if (timetable && order->wait_time > 0) {
+ if (timetable && order->GetWaitTime() > 0) {
SetDParam(5, STR_TIMETABLE_AND_TRAVEL_FOR);
- SetTimetableParams(6, 7, order->wait_time);
+ SetTimetableParams(6, 7, order->GetWaitTime());
} else {
SetDParam(5, STR_EMPTY);
}