summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-05-26 19:54:43 +0000
committerzuu <zuu@openttd.org>2013-05-26 19:54:43 +0000
commita4cddc3e082e2bba80644792b2f6623979328e65 (patch)
tree803c694f123792d7b54f45fdd2d3f83dc3bcc8a5 /src/saveload
parent05c472f08afdfc6d56fa45f941c17657358d0733 (diff)
downloadopenttd-a4cddc3e082e2bba80644792b2f6623979328e65.tar.xz
(svn r25296) -Feature: Goals can now have a progress text and/or be marked as completed.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/goal_sl.cpp10
-rw-r--r--src/saveload/saveload.cpp4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/saveload/goal_sl.cpp b/src/saveload/goal_sl.cpp
index b8df122b3..1c260503e 100644
--- a/src/saveload/goal_sl.cpp
+++ b/src/saveload/goal_sl.cpp
@@ -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()
};
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 8b0ee1109..9a18c33d9 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -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