summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-15 14:52:17 +0000
committerrubidium <rubidium@openttd.org>2006-08-15 14:52:17 +0000
commitdc54e608e36145deab60dea2cbe08517b28e54c0 (patch)
tree4d695e9efdc4542d90feba482d6d00bd948be0d3 /date.c
parent672ee1bf3a553c25d446944e8a08131fdf7ceabe (diff)
downloadopenttd-dc54e608e36145deab60dea2cbe08517b28e54c0.tar.xz
(svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this.
Diffstat (limited to 'date.c')
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index b2feeaff5..dad1aa47b 100644
--- a/date.c
+++ b/date.c
@@ -282,7 +282,7 @@ void IncreaseDate(void)
#endif /* ENABLE_NETWORK */
/* check if we reached end of the game */
- if (_cur_year == _patches.ending_date - MAX_YEAR_BEGIN_REAL) {
+ if (_cur_year == _patches.ending_year - MAX_YEAR_BEGIN_REAL) {
ShowEndGameChart();
/* check if we reached the maximum year, decrement dates by a year */
} else if (_cur_year == (MAX_YEAR_END + 1)) {