summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-13 19:24:40 +0000
committersmatz <smatz@openttd.org>2008-02-13 19:24:40 +0000
commitfe48d0be219f2035b146c6444c92c305d9c3bedf (patch)
treeaf07b8c3ed3437ba91111379ab438956940c60bb /src/vehicle.cpp
parent833a00def99ecf91bce955e35b82b33e4b7d5517 (diff)
downloadopenttd-fe48d0be219f2035b146c6444c92c305d9c3bedf.tar.xz
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 31141b42c..1e3726b1c 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2797,6 +2797,7 @@ static const SaveLoad _common_veh_desc[] = {
SLE_VAR(Vehicle, day_counter, SLE_UINT8),
SLE_VAR(Vehicle, tick_counter, SLE_UINT8),
+ SLE_CONDVAR(Vehicle, running_ticks, SLE_UINT8, 88, SL_MAX_VERSION),
SLE_VAR(Vehicle, cur_order_index, SLE_UINT8),
SLE_VAR(Vehicle, num_orders, SLE_UINT8),