Scale displayed running costs by day length factor

This commit is contained in:
Jonathan G Rennison
2018-01-25 18:23:15 +00:00
parent aa1a914d96
commit a6a1e67dbc
5 changed files with 23 additions and 12 deletions

View File

@@ -572,7 +572,7 @@ public:
* Gets the running cost of a vehicle that can be sent into SetDParam for string processing.
* @return the vehicle's running cost
*/
Money GetDisplayRunningCost() const { return (this->GetRunningCost() >> 8); }
Money GetDisplayRunningCost() const { return (this->GetRunningCost() >> 8) * _settings_game.economy.day_length_factor; }
/**
* Gets the profit vehicle had this year. It can be sent into SetDParam for string processing.