mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Only warn about duplicate orders for go to type orders
This commit is contained in:
parent
e1aa220981
commit
19a671cfb8
@ -2919,8 +2919,8 @@ void CheckOrders(const Vehicle *v)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the last and the first order are the same */
|
/* Check if the last and the first order are the same, and the first order is a go to order */
|
||||||
if (v->GetNumOrders() > 1) {
|
if (v->GetNumOrders() > 1 && v->orders->GetFirstOrder()->IsGotoOrder()) {
|
||||||
const Order *last = v->GetLastOrder();
|
const Order *last = v->GetLastOrder();
|
||||||
|
|
||||||
if (v->orders->GetFirstOrder()->Equals(*last)) {
|
if (v->orders->GetFirstOrder()->Equals(*last)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user