summaryrefslogtreecommitdiff
path: root/station_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
commit55423efb0687d937256d17ad267fce67ed9bf5cf (patch)
treea128ca9df2fa6efee823ebaf238898eddb20617b /station_cmd.c
parent628b1adbd24e1c0753e91030fb2080ca64340719 (diff)
downloadopenttd-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 'station_cmd.c')
-rw-r--r--station_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 2d914fbf3..bd276ed94 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -2966,7 +2966,7 @@ const TileTypeProcs _tile_type_station_procs = {
GetSlopeTileh_Station, /* get_slope_tileh_proc */
};
-static const byte _roadstop_desc[] = {
+static const SaveLoad _roadstop_desc[] = {
SLE_VAR(RoadStop,xy, SLE_UINT32),
SLE_VAR(RoadStop,used, SLE_UINT8),
SLE_VAR(RoadStop,status, SLE_UINT8),
@@ -2983,7 +2983,7 @@ static const byte _roadstop_desc[] = {
SLE_END()
};
-static const byte _station_desc[] = {
+static const SaveLoad _station_desc[] = {
SLE_CONDVAR(Station, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
SLE_CONDVAR(Station, xy, SLE_UINT32, 6, 255),
SLE_CONDVAR(Station, bus_tile_obsolete, SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
@@ -3036,7 +3036,7 @@ static const byte _station_desc[] = {
SLE_END()
};
-static const byte _goods_desc[] = {
+static const SaveLoad _goods_desc[] = {
SLE_VAR(GoodsEntry,waiting_acceptance,SLE_UINT16),
SLE_VAR(GoodsEntry,days_since_pickup, SLE_UINT8),
SLE_VAR(GoodsEntry,rating, SLE_UINT8),