forked from mirror/OpenTTD
(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
Reference in New Issue
Block a user