summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-30 22:16:05 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-30 22:16:05 +0000
commitf4f5cb93f8e353148baa5e06044f5bc9c5e3bba6 (patch)
treea128ca9df2fa6efee823ebaf238898eddb20617b /town_cmd.c
parentedf7a3be82add693536ae5eedd980e65c94f3449 (diff)
downloadopenttd-f4f5cb93f8e353148baa5e06044f5bc9c5e3bba6.tar.xz
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 498c2154b..b9d960926 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1973,7 +1973,7 @@ const TileTypeProcs _tile_type_town_procs = {
// Save and load of towns.
-static const byte _town_desc[] = {
+static const SaveLoad _town_desc[] = {
SLE_CONDVAR(Town, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
SLE_CONDVAR(Town, xy, SLE_UINT32, 6, 255),