mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Fix #9708: [Linkgraph] Don't assume vehicles have a non-zero max speed
This commit is contained in:
parent
f8a7b76675
commit
8bf56f39f2
@ -210,6 +210,8 @@ void LinkRefresher::RefreshStats(const Order *cur, const Order *next)
|
|||||||
uint cargo_quantity = this->capacities[c];
|
uint cargo_quantity = this->capacities[c];
|
||||||
if (cargo_quantity == 0) continue;
|
if (cargo_quantity == 0) continue;
|
||||||
|
|
||||||
|
if (this->vehicle->GetDisplayMaxSpeed() == 0) continue;
|
||||||
|
|
||||||
/* If not allowed to merge link graphs, make sure the stations are
|
/* If not allowed to merge link graphs, make sure the stations are
|
||||||
* already in the same link graph. */
|
* already in the same link graph. */
|
||||||
if (!this->allow_merge && st->goods[c].link_graph != st_to->goods[c].link_graph) {
|
if (!this->allow_merge && st->goods[c].link_graph != st_to->goods[c].link_graph) {
|
||||||
|
Loading…
Reference in New Issue
Block a user