summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 55358b63f..3c6ae964c 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -294,8 +294,10 @@ uint Engine::GetDisplayMaxSpeed() const
case VEH_TRAIN:
return GetEngineProperty(this->index, PROP_TRAIN_SPEED, this->u.rail.max_speed);
- case VEH_ROAD:
- return this->u.road.max_speed / 2;
+ case VEH_ROAD: {
+ uint max_speed = GetEngineProperty(this->index, PROP_ROADVEH_SPEED, 0);
+ return (max_speed != 0) ? max_speed * 2 : this->u.road.max_speed / 2;
+ }
case VEH_SHIP:
return GetEngineProperty(this->index, PROP_SHIP_SPEED, this->u.ship.max_speed) / 2;