diff options
author | frosch <frosch@openttd.org> | 2010-10-12 17:47:15 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-10-12 17:47:15 +0000 |
commit | 3866ecad3863a3d3ad64e4c489c5ceea6d5a2667 (patch) | |
tree | 47d3f15df6a3f98dbc845ba24fea5b7b594f64ff /src | |
parent | d78dabfa5176a099e0d2ccaa6893b624bc299d06 (diff) | |
download | openttd-3866ecad3863a3d3ad64e4c489c5ceea6d5a2667.tar.xz |
(svn r20918) -Add: Store NewGRF version information from Action14 in savegame. (planetmaker)
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/newgrf_sl.cpp | 1 | ||||
-rw-r--r-- | src/saveload/saveload.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/saveload/newgrf_sl.cpp b/src/saveload/newgrf_sl.cpp index b59badbce..bba77d77a 100644 --- a/src/saveload/newgrf_sl.cpp +++ b/src/saveload/newgrf_sl.cpp @@ -52,6 +52,7 @@ static const SaveLoad _grfconfig_desc[] = { SLE_STR(GRFConfig, filename, SLE_STR, 0x40), SLE_VAR(GRFConfig, ident.grfid, SLE_UINT32), SLE_ARR(GRFConfig, ident.md5sum, SLE_UINT8, 16), + SLE_CONDVAR(GRFConfig, version, SLE_UINT32, 151, SL_MAX_VERSION), SLE_ARR(GRFConfig, param, SLE_UINT32, 0x80), SLE_VAR(GRFConfig, num_params, SLE_UINT8), SLE_CONDVAR(GRFConfig, palette, SLE_UINT8, 101, SL_MAX_VERSION), diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index fdf3b16ad..6f0bc055b 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -213,8 +213,9 @@ * 148 20659 * 149 20832 * 150 20857 + * 151 20918 */ -extern const uint16 SAVEGAME_VERSION = 150; ///< current savegame version of OpenTTD +extern const uint16 SAVEGAME_VERSION = 151; ///< current savegame version of OpenTTD SavegameType _savegame_type; ///< type of savegame we are loading |