mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r25897) -Fix: Dates are int32, not uint32, and should be saved as such.
This commit is contained in:
parent
487f7f0473
commit
725b7033ef
@ -30,7 +30,7 @@ static uint _num_nodes;
|
|||||||
const SaveLoad *GetLinkGraphDesc()
|
const SaveLoad *GetLinkGraphDesc()
|
||||||
{
|
{
|
||||||
static const SaveLoad link_graph_desc[] = {
|
static const SaveLoad link_graph_desc[] = {
|
||||||
SLE_VAR(LinkGraph, last_compression, SLE_UINT32),
|
SLE_VAR(LinkGraph, last_compression, SLE_INT32),
|
||||||
SLEG_VAR(_num_nodes, SLE_UINT16),
|
SLEG_VAR(_num_nodes, SLE_UINT16),
|
||||||
SLE_VAR(LinkGraph, cargo, SLE_UINT8),
|
SLE_VAR(LinkGraph, cargo, SLE_UINT8),
|
||||||
SLE_END()
|
SLE_END()
|
||||||
@ -73,7 +73,7 @@ const SaveLoad *GetLinkGraphJobDesc()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const SaveLoad job_desc[] = {
|
const SaveLoad job_desc[] = {
|
||||||
SLE_VAR(LinkGraphJob, join_date, SLE_UINT32),
|
SLE_VAR(LinkGraphJob, join_date, SLE_INT32),
|
||||||
SLE_VAR(LinkGraphJob, link_graph.index, SLE_UINT16),
|
SLE_VAR(LinkGraphJob, link_graph.index, SLE_UINT16),
|
||||||
SLE_END()
|
SLE_END()
|
||||||
};
|
};
|
||||||
@ -110,7 +110,7 @@ static const SaveLoad _node_desc[] = {
|
|||||||
SLE_VAR(Node, supply, SLE_UINT32),
|
SLE_VAR(Node, supply, SLE_UINT32),
|
||||||
SLE_VAR(Node, demand, SLE_UINT32),
|
SLE_VAR(Node, demand, SLE_UINT32),
|
||||||
SLE_VAR(Node, station, SLE_UINT16),
|
SLE_VAR(Node, station, SLE_UINT16),
|
||||||
SLE_VAR(Node, last_update, SLE_UINT32),
|
SLE_VAR(Node, last_update, SLE_INT32),
|
||||||
SLE_END()
|
SLE_END()
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ static const SaveLoad _edge_desc[] = {
|
|||||||
SLE_VAR(Edge, distance, SLE_UINT32),
|
SLE_VAR(Edge, distance, SLE_UINT32),
|
||||||
SLE_VAR(Edge, capacity, SLE_UINT32),
|
SLE_VAR(Edge, capacity, SLE_UINT32),
|
||||||
SLE_VAR(Edge, usage, SLE_UINT32),
|
SLE_VAR(Edge, usage, SLE_UINT32),
|
||||||
SLE_VAR(Edge, last_update, SLE_UINT32),
|
SLE_VAR(Edge, last_update, SLE_INT32),
|
||||||
SLE_VAR(Edge, next_edge, SLE_UINT16),
|
SLE_VAR(Edge, next_edge, SLE_UINT16),
|
||||||
SLE_END()
|
SLE_END()
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user