(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION

This commit is contained in:
Darkvater
2006-02-20 19:43:26 +00:00
parent fa337ae64a
commit 45e85d2eb2
11 changed files with 98 additions and 98 deletions

View File

@@ -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()
};