From f4f5cb93f8e353148baa5e06044f5bc9c5e3bba6 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 30 May 2005 22:16:05 +0000 Subject: (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. --- depot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'depot.c') diff --git a/depot.c b/depot.c index f52bd2573..289ef7a27 100644 --- a/depot.c +++ b/depot.c @@ -103,7 +103,7 @@ void InitializeDepot(void) } -static const byte _depot_desc[] = { +static const SaveLoad _depot_desc[] = { SLE_CONDVAR(Depot, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), SLE_CONDVAR(Depot, xy, SLE_UINT32, 6, 255), SLE_VAR(Depot,town_index, SLE_UINT16), -- cgit v1.2.3-54-g00ecf