(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
This commit is contained in:
smatz
2009-01-13 22:58:03 +00:00
parent 5b4da28594
commit ca45774160
20 changed files with 55 additions and 47 deletions

View File

@@ -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;
}