diff options
author | smatz <smatz@openttd.org> | 2009-01-13 22:58:03 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-13 22:58:03 +0000 |
commit | ca45774160670c787ba81b3c09ff418c1e1bc772 (patch) | |
tree | 30732aa7126b9196722d14cee835443a82b9688b /src/ai/api/ai_vehicle.hpp | |
parent | 5b4da28594828bd784dadbb670444be79caf2bce (diff) | |
download | openttd-ca45774160670c787ba81b3c09ff418c1e1bc772.tar.xz |
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp index 8120fe947..84ddb4734 100644 --- a/src/ai/api/ai_vehicle.hpp +++ b/src/ai/api/ai_vehicle.hpp @@ -218,7 +218,7 @@ public: * @param vehicle_id The vehicle to get the age of. * @pre IsValidVehicle(vehicle_id). * @return The running cost of the vehicle per year. - * @note Cost is per year; divide by 364 to get per day. + * @note Cost is per year; divide by 365 to get per day. * @note This is not equal to AIEngine::GetRunningCost for Trains, because * wagons and second engines can add up in the calculation too. */ |