summaryrefslogtreecommitdiff
path: root/src/saveload
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
commitca45774160670c787ba81b3c09ff418c1e1bc772 (patch)
tree30732aa7126b9196722d14cee835443a82b9688b /src/saveload
parent5b4da28594828bd784dadbb670444be79caf2bce (diff)
downloadopenttd-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/saveload')
-rw-r--r--src/saveload/oldloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp
index 930e8fa2b..b6690d9c1 100644
--- a/src/saveload/oldloader.cpp
+++ b/src/saveload/oldloader.cpp
@@ -1514,7 +1514,7 @@ static bool LoadOldMain(LoadgameState *ls)
* we will get a "new vehicle"-spree. */
Engine *e;
FOR_ALL_ENGINES(e) {
- if (_date >= (e->intro_date + 365)) {
+ if (_date >= (e->intro_date + DAYS_IN_YEAR)) {
e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
e->company_avail = (CompanyMask)-1;
}