summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.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/roadveh_cmd.cpp
parent4ef537ba338c44a84b4defcce5aa24554edcde22 (diff)
downloadopenttd-c915d9fa55e8bb42b33c56b94c5a5e0ff446d7da.tar.xz
(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 88a31de73..b3310af10 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -460,7 +460,7 @@ inline int RoadVehicle::GetCurrentMaxSpeed() const
}
}
- return min(max_speed, this->current_order.max_speed * 2);
+ return min(max_speed, this->current_order.GetMaxSpeed() * 2);
}
/**