diff options
author | peter1138 <peter1138@openttd.org> | 2009-12-13 08:46:08 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-12-13 08:46:08 +0000 |
commit | 5a8353fafc70f41eac2681f66fbee6cef4c6bde6 (patch) | |
tree | 084ea1e8d28d5cf9538f9c2aad12ced4e5076859 | |
parent | 5477aec8fb7f7c10d3083051eb1cfc0ced9a09c4 (diff) | |
download | openttd-5a8353fafc70f41eac2681f66fbee6cef4c6bde6.tar.xz |
(svn r18479) -Fix (r6532): Direction is accounted for long before motion counter is updated
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 08b2aa749..9e0e7b8ef 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -649,7 +649,7 @@ void CallVehicleTicks() if (v->type == VEH_AIRCRAFT && v->subtype != AIR_HELICOPTER) continue; if (v->type == VEH_ROAD && !RoadVehicle::From(v)->IsRoadVehFront()) continue; - v->motion_counter += (v->direction & 1) ? (v->cur_speed * 3) / 4 : v->cur_speed; + v->motion_counter += v->cur_speed; /* Play a running sound if the motion counter passes 256 (Do we not skip sounds?) */ if (GB(v->motion_counter, 0, 8) < v->cur_speed) PlayVehicleSound(v, VSE_RUNNING); |