From 29e987f3fc13dc1e2a90f07556bf033b81a13e36 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Tue, 22 Oct 2013 16:13:28 +0000 Subject: (svn r25898) -Codechange: Add second timestamp for 'restricted links' to all edges. --- src/saveload/linkgraph_sl.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/saveload') 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() }; /** -- cgit v1.2.3-70-g09d2