Mercurial > hg > openttd
diff src/vehicle.cpp @ 8556:8aae08d562cc draft
(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
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 13 Feb 2008 19:24:40 +0000 |
parents | 105d9dd7d05c |
children | 48e1d4898d72 |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2797,6 +2797,7 @@ 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),