From a0ddc43e92c33436bccc0d16ae935237e02a357e Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 13 Feb 2008 19:24:40 +0000 Subject: (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 --- src/vehicle_base.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/vehicle_base.h') diff --git a/src/vehicle_base.h b/src/vehicle_base.h index a19b80dfb..8d9c015d4 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -249,8 +249,9 @@ public: CargoList cargo; ///< The cargo this vehicle is carrying - byte day_counter; // increased by one for each day - byte tick_counter; // increased by one for each tick + byte day_counter; ///< Increased by one for each day + byte tick_counter; ///< Increased by one for each tick + byte running_ticks; ///< Number of ticks this vehicle was not stopped this day /* Begin Order-stuff */ Order current_order; ///< The current order (+ status, like: loading) @@ -291,8 +292,8 @@ public: uint16 load_unload_time_rem; byte vehicle_flags; // Used for gradual loading and other miscellaneous things (@see VehicleFlags enum) - Money profit_this_year; - Money profit_last_year; + Money profit_this_year; ///< Profit this year << 8, low 8 bits are fract + Money profit_last_year; ///< Profit last year << 8, low 8 bits are fract Money value; GroupID group_id; ///< Index of group Pool array -- cgit v1.2.3-54-g00ecf