mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled.
This commit is contained in:
parent
aef20ec54d
commit
84211a8fea
|
@ -1429,7 +1429,7 @@ bool Order::ShouldStopAtStation(const Vehicle *v, StationID station) const
|
||||||
type == OT_GOTO_STATION && // Do stop only when going to a station
|
type == OT_GOTO_STATION && // Do stop only when going to a station
|
||||||
/* Finally do stop when the non-stop flag is not set, or when we should stop at
|
/* Finally do stop when the non-stop flag is not set, or when we should stop at
|
||||||
* this station according to the new_nonstop setting. */
|
* this station according to the new_nonstop setting. */
|
||||||
(!this->flags & OFB_NON_STOP || ((this->dest != station) == _patches.new_nonstop));
|
(!(this->flags & OFB_NON_STOP) || ((this->dest != station) == _patches.new_nonstop));
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitializeOrders()
|
void InitializeOrders()
|
||||||
|
|
Loading…
Reference in New Issue