Mercurial > hg > openttd
changeset 18663:eb5035164879 draft
(svn r23511) -Fix [FS#4885] (r23504): Aircraft orders could not be shared anymore when they had no range property declared (Hirundo)
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Tue, 13 Dec 2011 21:10:43 +0000 |
parents | e72dcbedce46 |
children | f12fe58994f6 |
files | src/order_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1401,7 +1401,7 @@ */ bool CheckAircraftOrderDistance(const Aircraft *v, const Order *first) { - if (first == NULL) return true; + if (first == NULL || v->acache.cached_max_range == 0) return true; /* Iterate over all orders to check the distance between all * 'goto' orders and their respective next order (of any type). */