summaryrefslogtreecommitdiff
path: root/src/rail.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-13 22:58:03 +0000
committersmatz <smatz@openttd.org>2009-01-13 22:58:03 +0000
commite00cf92f47837d26d5b0fffb0668c5c717b3bacc (patch)
tree30732aa7126b9196722d14cee835443a82b9688b /src/rail.cpp
parentcb221d99969240913f61d3bd64e20425568044d2 (diff)
downloadopenttd-e00cf92f47837d26d5b0fffb0668c5c717b3bacc.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/rail.cpp')
-rw-r--r--src/rail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail.cpp b/src/rail.cpp
index 6e2b141e7..377397d97 100644
--- a/src/rail.cpp
+++ b/src/rail.cpp
@@ -201,7 +201,7 @@ RailTypes GetCompanyRailtypes(CompanyID company)
const EngineInfo *ei = &e->info;
if (HasBit(ei->climates, _settings_game.game_creation.landscape) &&
- (HasBit(e->company_avail, company) || _date >= e->intro_date + 365)) {
+ (HasBit(e->company_avail, company) || _date >= e->intro_date + DAYS_IN_YEAR)) {
const RailVehicleInfo *rvi = &e->u.rail;
if (rvi->railveh_type != RAILVEH_WAGON) {