summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-08 21:48:59 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-08 21:48:59 +0000
commit0052c85002e8e5631fa09a0b726b0c65c6350b93 (patch)
tree69dff3195c0a8d9add54b6bf42a8f9adb078ff94 /src/newgrf.cpp
parentb522f73ba8f6c53f75639fc4f5d6b2a078827513 (diff)
downloadopenttd-0052c85002e8e5631fa09a0b726b0c65c6350b93.tar.xz
(svn r14926) -Feature: Automatically set last engine ageing year to the last 'introduction year plus half model life', to allow engines later than 2050 to appear.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index e0cff5836..915cd3f99 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6039,6 +6039,8 @@ static void AfterLoadGRFs()
}
}
+ SetYearEngineAgingStops();
+
/* Deallocate temporary loading data */
free(_gted);
_grm_sprites.clear();