summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-16 00:20:33 +0000
committerDarkvater <darkvater@openttd.org>2006-03-16 00:20:33 +0000
commitd9ee10d3b835e713a117df6f8ffae20e3bf3b27e (patch)
treeac6cdd2863b4bb080d7d84f5549642dad620393f /town_cmd.c
parent61bb1d5b9af4e8a5d49fc8b70b2749e35f4861d1 (diff)
downloadopenttd-d9ee10d3b835e713a117df6f8ffae20e3bf3b27e.tar.xz
(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
- Also add this capability to settings
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c
index ce4498f5f..73102547b 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1979,7 +1979,7 @@ static const SaveLoad _town_desc[] = {
SLE_VAR(Town,statues, SLE_UINT8),
// sort_index_obsolete was stored here in savegame format 0 - 1
- SLE_CONDARR(NullStruct,null,SLE_FILE_U8 | SLE_VAR_NULL, 1, 0, 1),
+ SLE_CONDNULL(1, 0, 1),
SLE_VAR(Town,have_ratings,SLE_UINT8),
SLE_ARR(Town,ratings, SLE_INT16, 8),
@@ -2021,7 +2021,7 @@ static const SaveLoad _town_desc[] = {
SLE_VAR(Town,exclusivity, SLE_UINT8),
SLE_VAR(Town,exclusive_counter, SLE_UINT8),
// reserve extra space in savegame here. (currently 30 bytes)
- SLE_CONDARR(NullStruct,null,SLE_FILE_U8 | SLE_VAR_NULL, 30, 2, SL_MAX_VERSION),
+ SLE_CONDNULL(30, 2, SL_MAX_VERSION),
SLE_END()
};