(svn r23511) -Fix [FS#4885] (r23504): Aircraft orders could not be shared anymore when they had no range property declared (Hirundo)

This commit is contained in:
planetmaker 2011-12-13 21:10:43 +00:00
parent 994b541fcf
commit 86c1947579
1 changed files with 1 additions and 1 deletions

View File

@ -1401,7 +1401,7 @@ CommandCost CmdModifyOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
*/
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). */