(svn r25296) -Feature: Goals can now have a progress text and/or be marked as completed.

This commit is contained in:
zuu
2013-05-26 19:54:43 +00:00
parent 4518e16da7
commit f23a61e1aa
15 changed files with 256 additions and 28 deletions

View File

@@ -15,10 +15,12 @@
#include "saveload.h"
static const SaveLoad _goals_desc[] = {
SLE_VAR(Goal, company, SLE_UINT16),
SLE_VAR(Goal, type, SLE_UINT16),
SLE_VAR(Goal, dst, SLE_UINT32),
SLE_STR(Goal, text, SLE_STR | SLF_ALLOW_CONTROL, 0),
SLE_VAR(Goal, company, SLE_UINT16),
SLE_VAR(Goal, type, SLE_UINT16),
SLE_VAR(Goal, dst, SLE_UINT32),
SLE_STR(Goal, text, SLE_STR | SLF_ALLOW_CONTROL, 0),
SLE_CONDSTR(Goal, progress, SLE_STR | SLF_ALLOW_CONTROL, 0, 182, SL_MAX_VERSION),
SLE_CONDVAR(Goal, completed, SLE_BOOL, 182, SL_MAX_VERSION),
SLE_END()
};

View File

@@ -246,9 +246,9 @@
* 179 24810
* 180 24998 1.3.x
* 181 25012
* 182 25259
* 182 25296
*/
extern const uint16 SAVEGAME_VERSION = 181; ///< Current savegame version of OpenTTD.
extern const uint16 SAVEGAME_VERSION = 182; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading