From 2f9e0b8e0ca58ed9cbb907170631294baa706156 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 28 Dec 2004 11:51:31 +0000 Subject: (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!! --- misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 34ad3bfac..a96d09eb1 100644 --- a/misc.c +++ b/misc.c @@ -837,7 +837,12 @@ static void SaveLoad_MAPT() { } static void SaveLoad_MAP2() { - SlArray(_map2, MapSize(), SLE_UINT8); + if (_sl.version < 5) { + /* In those versions the _map2 was 8 bits */ + SlArray(_map2, MapSize(), SLE_FILE_U8 | SLE_VAR_U16); + } else { + SlArray(_map2, MapSize(), SLE_UINT16); + } } static void SaveLoad_M3LO() { -- cgit v1.2.3-54-g00ecf