diff options
author | rubidium <rubidium@openttd.org> | 2006-08-20 18:40:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-20 18:40:57 +0000 |
commit | 6fb092aa7a574ccfc1baebeddadc26868318ad1f (patch) | |
tree | 146ad5e3c72a49bcc04fae58e750b972f063d8c2 /waypoint.c | |
parent | a87a2c26ec50bb4de1c1142259e667d2a831968f (diff) | |
download | openttd-6fb092aa7a574ccfc1baebeddadc26868318ad1f.tar.xz |
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index 4d0b9a519..b946d38c4 100644 --- a/waypoint.c +++ b/waypoint.c @@ -408,7 +408,8 @@ static const SaveLoad _waypoint_desc[] = { SLE_VAR(Waypoint, string, SLE_UINT16), SLE_VAR(Waypoint, deleted, SLE_UINT8), - SLE_CONDVAR(Waypoint, build_date, SLE_UINT16, 3, SL_MAX_VERSION), + SLE_CONDVAR(Waypoint, build_date, SLE_FILE_U16 | SLE_VAR_I32, 3, 30), + SLE_CONDVAR(Waypoint, build_date, SLE_INT32, 31, SL_MAX_VERSION), SLE_CONDVAR(Waypoint, localidx, SLE_UINT8, 3, SL_MAX_VERSION), SLE_CONDVAR(Waypoint, grfid, SLE_UINT32, 17, SL_MAX_VERSION), |