(svn r26753) -Fix: desync due to not always properly restoring game state from the savegame

This commit is contained in:
rubidium
2014-08-22 17:11:59 +00:00
parent e458661fb6
commit 134ad63b80
2 changed files with 4 additions and 3 deletions

View File

@@ -48,12 +48,13 @@ public:
* Create a FlowStat with an initial entry.
* @param st Station the initial entry refers to.
* @param flow Amount of flow for the initial entry.
* @param restricted If the flow to be added is restricted.
*/
inline FlowStat(StationID st, uint flow)
inline FlowStat(StationID st, uint flow, bool restricted = false)
{
assert(flow > 0);
this->shares[flow] = st;
this->unrestricted = flow;
this->unrestricted = restricted ? 0 : flow;
}
/**