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 | 28a08437075be6495df383ca854f6026965a8b8e (patch) | |
tree | 146ad5e3c72a49bcc04fae58e750b972f063d8c2 /industry_cmd.c | |
parent | 5e4667624e5093ea2b83bcdf63d836d1a34d46bc (diff) | |
download | openttd-28a08437075be6495df383ca854f6026965a8b8e.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 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index cf6592155..a22225efb 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1929,7 +1929,8 @@ static const SaveLoad _industry_desc[] = { SLE_VAR(Industry,type, SLE_UINT8), SLE_VAR(Industry,owner, SLE_UINT8), SLE_VAR(Industry,color_map, SLE_UINT8), - SLE_VAR(Industry,last_prod_year, SLE_UINT8), + SLE_CONDVAR(Industry, last_prod_year, SLE_FILE_U8 | SLE_VAR_I32, 0, 30), + SLE_CONDVAR(Industry, last_prod_year, SLE_INT32, 31, SL_MAX_VERSION), SLE_VAR(Industry,was_cargo_delivered,SLE_UINT8), // reserve extra space in savegame here. (currently 32 bytes) |