From 45e85d2eb2f3c0989bdcb746be2460a60d235273 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 20 Feb 2006 19:43:26 +0000 Subject: (svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION --- industry_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'industry_cmd.c') 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() }; -- cgit v1.2.3-54-g00ecf