diff options
author | tron <tron@openttd.org> | 2005-01-25 21:43:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-25 21:43:57 +0000 |
commit | 993a106679e4e682d9028fe44d1e5f9f1f178506 (patch) | |
tree | c41ff658c058ac5448d20ea2b75c1855bd443d93 /town_cmd.c | |
parent | 8e5e2e52fd67b0593c866e4777f9738d9fb6f368 (diff) | |
download | openttd-993a106679e4e682d9028fe44d1e5f9f1f178506.tar.xz |
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c index 54f5f861b..73cab9989 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -1865,7 +1865,8 @@ const TileTypeProcs _tile_type_town_procs = { // Save and load of towns. static const byte _town_desc[] = { - SLE_VAR(Town,xy, SLE_UINT16), + SLE_CONDVAR(Town, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Town, xy, SLE_UINT32, 6, 255), SLE_CONDVAR(Town,population, SLE_FILE_U16 | SLE_VAR_U32, 0, 2), SLE_CONDVAR(Town,population, SLE_UINT32, 3, 255), |