summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-12 14:49:51 +0200
committerPatric Stout <github@truebrain.nl>2021-06-15 16:45:04 +0200
commit97b94bdc9ab4ceeb589c5022d5c238442faf0454 (patch)
tree7d22a32f5bf2ac2a56467b7ce5f190fff9c8d09a /src/table
parentf67af5cbe5cb754c3b64553b9cc03b5c18ca7e79 (diff)
downloadopenttd-97b94bdc9ab4ceeb589c5022d5c238442faf0454.tar.xz
Change: prefix SL_ARR with the length of the array
This means that during loading we can validate that what is saved is also that what is expected. Additionally, this makes all list types similar to how they are stored on disk: First a gamma to indicate length, followed by the data. The size still depends on the type.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings/gameopt_settings.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/settings/gameopt_settings.ini b/src/table/settings/gameopt_settings.ini
index addcbeb02..ce28def63 100644
--- a/src/table/settings/gameopt_settings.ini
+++ b/src/table/settings/gameopt_settings.ini
@@ -41,7 +41,7 @@ static const SettingTable _gameopt_settings{
* XXX - To save file-space and since values are never bigger than about 10? only
* save the first 16 bits in the savegame. Question is why the values are still int32
* and why not byte for example?
- * 'SLE_FILE_I16 | SLE_VAR_U16' in "diff_custom" is needed to get around SlArray() hack
+ * 'SLE_FILE_I16 | SLE_VAR_U16' in "diff_custom" is needed to get around SlCopy() hack
* for savegames version 0 - though it is an array, it has to go through the byteswap process */
[post-amble]
};