mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
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
|
||||
* new flows. */
|
||||
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. */
|
||||
flows.RestrictFlows(to);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user