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 | 507728f46b47ed3a8e941d93d770eb7c04635cd8 (patch) | |
tree | f31f432525a86f656f7d7d5e7c49bbd75af4a86b /src/order_cmd.cpp | |
parent | df7327b4536224a78efab4586ec152ec36bdd982 (diff) | |
download | openttd-507728f46b47ed3a8e941d93d770eb7c04635cd8.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; |