Display current lifetime profit, instead of the yearly-updated value.

This commit is contained in:
Jonathan G Rennison
2016-01-01 13:37:43 +00:00
parent 71be17729e
commit e6afc6f048

View File

@@ -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);