From 4fff63d790ab865cc93963d1939f27ee1c023ace Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 26 Jan 2011 17:31:44 +0000 Subject: (svn r21912) -Codechange: let road vehicles use gcache.last_speed/SetLastSpeed as well --- src/saveload/vehicle_sl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/saveload') 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(); -- cgit v1.2.3-70-g09d2