From e6afc6f0489e4865172fe92e7b3ce685b3cc6e41 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 1 Jan 2016 13:37:43 +0000 Subject: [PATCH] Display current lifetime profit, instead of the yearly-updated value. --- src/vehicle_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_base.h b/src/vehicle_base.h index d55fa76f2d..55966e49c3 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -518,7 +518,7 @@ public: * Gets the lifetime profit of vehicle. It can be sent into SetDParam for string processing. * @return the vehicle's lifetime profit */ - Money GetDisplayProfitLifetime() const { return (this->profit_lifetime >> 8); } + Money GetDisplayProfitLifetime() const { return ((this->profit_lifetime + this->profit_this_year) >> 8); } void SetNext(Vehicle *next);