From 19a671cfb8329a95990e7bf4c74dc9030b30eefd Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 21 Jul 2024 22:20:13 +0100 Subject: [PATCH] Only warn about duplicate orders for go to type orders --- src/order_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 98d931e153..6aa7b1798f 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -2919,8 +2919,8 @@ void CheckOrders(const Vehicle *v) } } - /* Check if the last and the first order are the same */ - if (v->GetNumOrders() > 1) { + /* Check if the last and the first order are the same, and the first order is a go to order */ + if (v->GetNumOrders() > 1 && v->orders->GetFirstOrder()->IsGotoOrder()) { const Order *last = v->GetLastOrder(); if (v->orders->GetFirstOrder()->Equals(*last)) {