summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-26 17:31:44 +0000
committerrubidium <rubidium@openttd.org>2011-01-26 17:31:44 +0000
commit4fff63d790ab865cc93963d1939f27ee1c023ace (patch)
tree04fd8c3aeb35983dea8084dad2f14bcf91d4e305 /src/saveload
parentb11f1bd4ed68fc0d031429df2925b87ed6baceb3 (diff)
downloadopenttd-4fff63d790ab865cc93963d1939f27ee1c023ace.tar.xz
(svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 32b692f1d..61dece380 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -345,6 +345,7 @@ void AfterLoadVehicles(bool part_of_load)
case VEH_ROAD: {
RoadVehicle *rv = RoadVehicle::From(v);
if (rv->IsFrontEngine()) {
+ rv->gcache.last_speed = rv->cur_speed; // update displayed road vehicle speed
RoadVehUpdateCache(rv);
if (_settings_game.vehicle.roadveh_acceleration_model != AM_ORIGINAL) {
rv->CargoChanged();