summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-10-22 16:13:28 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-10-22 16:13:28 +0000
commit29e987f3fc13dc1e2a90f07556bf033b81a13e36 (patch)
treec8f1abf4c61c5c7994792b231ead35f2910559e8 /src/saveload
parentec2d36a4a40646e260f4fbcdcd984e278ce8387a (diff)
downloadopenttd-29e987f3fc13dc1e2a90f07556bf033b81a13e36.tar.xz
(svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/linkgraph_sl.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/saveload/linkgraph_sl.cpp b/src/saveload/linkgraph_sl.cpp
index f7d2893ce..f0dcb1dd4 100644
--- a/src/saveload/linkgraph_sl.cpp
+++ b/src/saveload/linkgraph_sl.cpp
@@ -118,12 +118,13 @@ static const SaveLoad _node_desc[] = {
* SaveLoad desc for a link graph edge.
*/
static const SaveLoad _edge_desc[] = {
- SLE_VAR(Edge, distance, SLE_UINT32),
- SLE_VAR(Edge, capacity, SLE_UINT32),
- SLE_VAR(Edge, usage, SLE_UINT32),
- SLE_VAR(Edge, last_update, SLE_INT32),
- SLE_VAR(Edge, next_edge, SLE_UINT16),
- SLE_END()
+ SLE_VAR(Edge, distance, SLE_UINT32),
+ SLE_VAR(Edge, capacity, SLE_UINT32),
+ SLE_VAR(Edge, usage, SLE_UINT32),
+ SLE_VAR(Edge, last_unrestricted_update, SLE_INT32),
+ SLE_CONDVAR(Edge, last_restricted_update, SLE_INT32, 187, SL_MAX_VERSION),
+ SLE_VAR(Edge, next_edge, SLE_UINT16),
+ SLE_END()
};
/**