diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-30 22:16:05 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-30 22:16:05 +0000 |
commit | 55423efb0687d937256d17ad267fce67ed9bf5cf (patch) | |
tree | a128ca9df2fa6efee823ebaf238898eddb20617b /waypoint.c | |
parent | 628b1adbd24e1c0753e91030fb2080ca64340719 (diff) | |
download | openttd-55423efb0687d937256d17ad267fce67ed9bf5cf.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 'waypoint.c')
-rw-r--r-- | waypoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index f2c502b32..93e56b935 100644 --- a/waypoint.c +++ b/waypoint.c @@ -429,7 +429,7 @@ void InitializeWaypoints(void) AddBlockToPool(&_waypoint_pool); } -static const byte _waypoint_desc[] = { +static const SaveLoad _waypoint_desc[] = { SLE_CONDVAR(Waypoint, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), SLE_CONDVAR(Waypoint, xy, SLE_UINT32, 6, 255), SLE_CONDVAR(Waypoint, town_index, SLE_UINT16, 12, 255), |