mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(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.
This commit is contained in:
2
misc.c
2
misc.c
@@ -766,7 +766,7 @@ static void Load_NAME(void)
|
||||
}
|
||||
}
|
||||
|
||||
static const byte _game_opt_desc[] = {
|
||||
static const SaveLoad _game_opt_desc[] = {
|
||||
// added a new difficulty option (town attitude) in version 4
|
||||
SLE_CONDARR(GameOptions,diff, SLE_FILE_I16 | SLE_VAR_I32, 17, 0, 3),
|
||||
SLE_CONDARR(GameOptions,diff, SLE_FILE_I16 | SLE_VAR_I32, 18, 4, 255),
|
||||
|
Reference in New Issue
Block a user