(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
This commit is contained in:
@@ -437,6 +437,18 @@ public:
|
||||
*/
|
||||
Money GetDisplayRunningCost() const { return (this->GetRunningCost() >> 8); }
|
||||
|
||||
/**
|
||||
* Gets the profit vehicle had this year. It can be sent into SetDParam for string processing.
|
||||
* @return the vehicle's profit this year
|
||||
*/
|
||||
Money GetDisplayProfitThisYear() const { return (this->profit_this_year >> 8); }
|
||||
|
||||
/**
|
||||
* Gets the profit vehicle had last year. It can be sent into SetDParam for string processing.
|
||||
* @return the vehicle's profit last year
|
||||
*/
|
||||
Money GetDisplayProfitLastYear() const { return (this->profit_last_year >> 8); }
|
||||
|
||||
/**
|
||||
* Set the next vehicle of this vehicle.
|
||||
* @param next the next vehicle. NULL removes the next vehicle.
|
||||
|
||||
Reference in New Issue
Block a user