mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r20498) -Fix [FS#4030]: ignore the non-stop state when comparing one order type to another order type
This commit is contained in:
parent
e1d35cba6d
commit
15514baf8b
@ -115,7 +115,7 @@ bool Order::Equals(const Order &other) const
|
||||
* destination because those get clear/filled in during the order
|
||||
* evaluation. If we do not do this the order will continuously be seen as
|
||||
* a different order and it will try to find a "nearest depot" every tick. */
|
||||
if ((this->type == OT_GOTO_DEPOT && this->type == other.type) &&
|
||||
if ((this->IsType(OT_GOTO_DEPOT) && this->type == other.type) &&
|
||||
((this->GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0 ||
|
||||
(other.GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0)) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user