diff options
author | smatz <smatz@openttd.org> | 2008-02-13 14:21:36 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-13 14:21:36 +0000 |
commit | a3e3cd7d46c778fa5bfd8c5ec10281e557dbeb3c (patch) | |
tree | f31f432525a86f656f7d7d5e7c49bbd75af4a86b /src/order_cmd.cpp | |
parent | 3abf3e3fa4a1b5327a92a34e9cb0b82c0e7032cd (diff) | |
download | openttd-a3e3cd7d46c778fa5bfd8c5ec10281e557dbeb3c.tar.xz |
(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick)
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 770c91880..dbc1dac79 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -328,10 +328,8 @@ CommandCost CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (!HasOrderPoolFree(1)) return_cmd_error(STR_8831_NO_MORE_SPACE_FOR_ORDERS); - if (v->type == VEH_SHIP && - IsHumanPlayer(v->owner) && - !_patches.new_pathfinding_all) { - // Make sure the new destination is not too far away from the previous + if (v->type == VEH_SHIP && IsHumanPlayer(v->owner) && _patches.pathfinder_for_ships != VPF_NPF) { + /* Make sure the new destination is not too far away from the previous */ const Order *prev = NULL; uint n = 0; |