mirror of https://github.com/OpenTTD/OpenTTD.git
Edge flows were incorrectly restricted because the restricted instead of unrestricted last update date was checked See also: #10314
This commit is contained in:
parent
60565da8f9
commit
2cbe91c312
|
@ -138,7 +138,7 @@ LinkGraphJob::~LinkGraphJob()
|
||||||
* from the new flows. This avoids flow cycles between old and
|
* from the new flows. This avoids flow cycles between old and
|
||||||
* new flows. */
|
* new flows. */
|
||||||
while (!erased.IsEmpty()) ge.flows.erase(erased.Pop());
|
while (!erased.IsEmpty()) ge.flows.erase(erased.Pop());
|
||||||
} else if ((*lg)[node_id][dest_id].last_restricted_update == CalendarTime::INVALID_DATE) {
|
} else if ((*lg)[node_id][dest_id].last_unrestricted_update == CalendarTime::INVALID_DATE) {
|
||||||
/* Edge is fully restricted. */
|
/* Edge is fully restricted. */
|
||||||
flows.RestrictFlows(to);
|
flows.RestrictFlows(to);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue