summaryrefslogtreecommitdiff
path: root/src/road.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/road.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/road.cpp')
-rw-r--r--src/road.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road.cpp b/src/road.cpp
index e8d3062fc..f72440fef 100644
--- a/src/road.cpp
+++ b/src/road.cpp
@@ -104,7 +104,7 @@ RoadTypes GetCompanyRoadtypes(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)) {
SetBit(rt, HasBit(ei->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD);
}
}