summaryrefslogtreecommitdiff
path: root/signs.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 /signs.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 'signs.c')
-rw-r--r--signs.c2
1 files changed, 1 insertions, 1 deletions
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),