summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-02-20 19:43:26 +0000
committerDarkvater <darkvater@openttd.org>2006-02-20 19:43:26 +0000
commit45e85d2eb2f3c0989bdcb746be2460a60d235273 (patch)
treeed77a71f5446c2a70d26f0045fb2341b38b84ebf /industry_cmd.c
parentfa337ae64a554ae77fed3dfb1147acc7890e77ca (diff)
downloadopenttd-45e85d2eb2f3c0989bdcb746be2460a60d235273.tar.xz
(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 7aee70407..81941b1cd 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1905,7 +1905,7 @@ const TileTypeProcs _tile_type_industry_procs = {
static const SaveLoad _industry_desc[] = {
SLE_CONDVAR(Industry, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
- SLE_CONDVAR(Industry, xy, SLE_UINT32, 6, 255),
+ SLE_CONDVAR(Industry, xy, SLE_UINT32, 6, SL_MAX_VERSION),
SLE_VAR(Industry,width, SLE_UINT8),
SLE_VAR(Industry,height, SLE_UINT8),
SLE_REF(Industry,town, REF_TOWN),
@@ -1929,7 +1929,7 @@ static const SaveLoad _industry_desc[] = {
SLE_VAR(Industry,was_cargo_delivered,SLE_UINT8),
// reserve extra space in savegame here. (currently 32 bytes)
- SLE_CONDARR(NullStruct,null,SLE_FILE_U64 | SLE_VAR_NULL, 4, 2, 255),
+ SLE_CONDARR(NullStruct,null,SLE_FILE_U64 | SLE_VAR_NULL, 4, 2, SL_MAX_VERSION),
SLE_END()
};