summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-28 16:09:58 +0000
committerrubidium <rubidium@openttd.org>2008-12-28 16:09:58 +0000
commit683b65ee180d3685de82bf121492420c4db898e2 (patch)
tree63a4e2275c53d091675758b85913b051a87b9b39 /src/date.cpp
parent87e5a8b52bf2f200467d65c1e17fd79548d31129 (diff)
downloadopenttd-683b65ee180d3685de82bf121492420c4db898e2.tar.xz
(svn r14755) -Codechange: remove ending year as it can't be changed anyways.
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 4b4b94bb0..2b0e6ff09 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -284,8 +284,8 @@ void IncreaseDate()
if (_cur_year == _settings_client.gui.semaphore_build_before) ResetSignalVariant();
/* check if we reached end of the game */
- if (_cur_year == _settings_client.gui.ending_year) {
- ShowEndGameChart();
+ if (_cur_year == ORIGINAL_END_YEAR) {
+ ShowEndGameChart();
/* check if we reached the maximum year, decrement dates by a year */
} else if (_cur_year == MAX_YEAR + 1) {
Vehicle *v;