mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 14:09:10 +00:00
(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!!
This commit is contained in:
7
misc.c
7
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() {
|
||||
|
Reference in New Issue
Block a user