summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2014-09-07 16:12:58 +0000
committeralberth <alberth@openttd.org>2014-09-07 16:12:58 +0000
commitf72ad87540a5fa575bf790bb2796c484152998b5 (patch)
tree8d7b659dbd7d3e03717e49fc27b8a658b418c15c /src/saveload
parenteb41511cd1dacb1f9012c64818d26ccb7ec71e00 (diff)
downloadopenttd-f72ad87540a5fa575bf790bb2796c484152998b5.tar.xz
(svn r26802) -Add: Command to set visibility of an engine for a company (based on patch by Juanjo).
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/engine_sl.cpp2
-rw-r--r--src/saveload/saveload.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/saveload/engine_sl.cpp b/src/saveload/engine_sl.cpp
index 07bad4606..af53e4006 100644
--- a/src/saveload/engine_sl.cpp
+++ b/src/saveload/engine_sl.cpp
@@ -40,6 +40,7 @@ static const SaveLoad _engine_desc[] = {
SLE_CONDNULL(1, 0, 44),
SLE_CONDVAR(Engine, company_avail, SLE_FILE_U8 | SLE_VAR_U16, 0, 103),
SLE_CONDVAR(Engine, company_avail, SLE_UINT16, 104, SL_MAX_VERSION),
+ SLE_CONDVAR(Engine, company_hidden, SLE_UINT16, 193, SL_MAX_VERSION),
SLE_CONDSTR(Engine, name, SLE_STR, 0, 84, SL_MAX_VERSION),
SLE_CONDNULL(16, 2, 143), // old reserved space
@@ -108,6 +109,7 @@ void CopyTempEngineData()
e->preview_company = se->preview_company;
e->preview_wait = se->preview_wait;
e->company_avail = se->company_avail;
+ e->company_hidden = se->company_hidden;
if (se->name != NULL) e->name = stredup(se->name);
}
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 411b0e7a8..8638b8163 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -260,8 +260,9 @@
* 190 26547
* 191 26646
* 192 26700
+ * 193 26802
*/
-extern const uint16 SAVEGAME_VERSION = 192; ///< Current savegame version of OpenTTD.
+extern const uint16 SAVEGAME_VERSION = 193; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading