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. --- signs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signs.c') diff --git a/signs.c b/signs.c index 9974dd91c..d39382ec2 100644 --- a/signs.c +++ b/signs.c @@ -216,7 +216,7 @@ void InitializeSigns(void) AddBlockToPool(&_sign_pool); } -static const byte _sign_desc[] = { +static const SaveLoad _sign_desc[] = { SLE_VAR(SignStruct,str, SLE_UINT16), SLE_CONDVAR(SignStruct,x, SLE_FILE_I16 | SLE_VAR_I32, 0, 4), SLE_CONDVAR(SignStruct,y, SLE_FILE_I16 | SLE_VAR_I32, 0, 4), -- cgit v1.2.3-54-g00ecf