diff options
author | KUDr <KUDr@openttd.org> | 2006-05-19 19:36:17 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-05-19 19:36:17 +0000 |
commit | e02bf1db6a5dbf060037d04855a59980d60fc8fb (patch) | |
tree | 129f4102f3edd312f777d3e682355cb56d5467d0 | |
parent | 09ba9710fcf60d31882d54e9d522e27ef891c280 (diff) | |
download | openttd-e02bf1db6a5dbf060037d04855a59980d60fc8fb.tar.xz |
(svn r4915) - Fix: SLE_UINT8 replaced by SLE_BOOL for bool variables (found by Celestar)
-rw-r--r-- | players.c | 8 | ||||
-rw-r--r-- | station_cmd.c | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -1146,16 +1146,16 @@ static const SaveLoad _player_desc[] = { SLE_CONDARR(Player,yearly_expenses, SLE_FILE_I32|SLE_VAR_I64, 3*13, 0, 1), SLE_CONDARR(Player,yearly_expenses, SLE_INT64, 3*13, 2, SL_MAX_VERSION), - SLE_CONDVAR(Player,is_ai, SLE_UINT8, 2, SL_MAX_VERSION), - SLE_CONDVAR(Player,is_active, SLE_UINT8, 4, SL_MAX_VERSION), + SLE_CONDVAR(Player,is_ai, SLE_BOOL, 2, SL_MAX_VERSION), + SLE_CONDVAR(Player,is_active, SLE_BOOL, 4, SL_MAX_VERSION), // Engine renewal settings SLE_CONDNULL(512, 16, 18), SLE_CONDREF(Player,engine_renew_list, REF_ENGINE_RENEWS, 19, SL_MAX_VERSION), - SLE_CONDVAR(Player,engine_renew, SLE_UINT8, 16, SL_MAX_VERSION), + SLE_CONDVAR(Player,engine_renew, SLE_BOOL, 16, SL_MAX_VERSION), SLE_CONDVAR(Player,engine_renew_months, SLE_INT16, 16, SL_MAX_VERSION), SLE_CONDVAR(Player,engine_renew_money, SLE_UINT32, 16, SL_MAX_VERSION), - SLE_CONDVAR(Player,renew_keep_length, SLE_UINT8, 2, SL_MAX_VERSION), // added with 16.1, but was blank since 2 + SLE_CONDVAR(Player,renew_keep_length, SLE_BOOL, 2, SL_MAX_VERSION), // added with 16.1, but was blank since 2 // reserve extra space in savegame here. (currently 63 bytes) SLE_CONDNULL(63, 2, SL_MAX_VERSION), diff --git a/station_cmd.c b/station_cmd.c index c8356d3aa..636bbe1e9 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2871,7 +2871,7 @@ const TileTypeProcs _tile_type_station_procs = { static const SaveLoad _roadstop_desc[] = { SLE_VAR(RoadStop,xy, SLE_UINT32), - SLE_VAR(RoadStop,used, SLE_UINT8), + SLE_VAR(RoadStop,used, SLE_BOOL), SLE_VAR(RoadStop,status, SLE_UINT8), /* Index was saved in some versions, but this is not needed */ SLE_CONDNULL(4, 0, 8), |