summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-07 09:06:27 +0100
committerPatric Stout <github@truebrain.nl>2021-01-08 11:17:08 +0100
commitef6b17baf74119e5c1515482cd6feb837afbe90b (patch)
tree66cafe27944426ecf6c73482d752b71c3a958c52 /src/date.cpp
parenta1987df96acda0f58f88f2e154e26c529f59670b (diff)
downloadopenttd-ef6b17baf74119e5c1515482cd6feb837afbe90b.tar.xz
Fix 2fd871e2af5: load correct ending-year for old (pre 0.7) savegames
Despite what it looked like, you could never really change the ending-year (it was always reset to 2050 on start-up). See commit 683b65ee1 for details. As a side-effect, the variable that was suppose to store the ending-year was just zero, never containing a real ending-year.
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 397d02c54..18e1ad180 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -28,8 +28,6 @@ Date _date; ///< Current date in days (day counter)
DateFract _date_fract; ///< Fractional part of the day.
uint16 _tick_counter; ///< Ever incrementing (and sometimes wrapping) tick counter for setting off various events
-int32 _old_ending_year_slv_105; ///< Old ending year for savegames before SLV_105
-
/**
* Set the date.
* @param date New date