mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(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:
parent
994b541fcf
commit
86c1947579
@ -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). */
|
||||
|
Loading…
Reference in New Issue
Block a user