diff options
author | smatz <smatz@openttd.org> | 2008-04-17 18:24:45 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-17 18:24:45 +0000 |
commit | 059e94e355c9172a42b70ff20b4b8a87dd4889ae (patch) | |
tree | 1d21e0ab2e3402600dc144e6cfc0d1e0b5725da1 /src/order_gui.cpp | |
parent | e098b50379219aeb0b8d22d652a3de514759eb3d (diff) | |
download | openttd-059e94e355c9172a42b70ff20b4b8a87dd4889ae.tar.xz |
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index f5c2611f9..4631db958 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -462,8 +462,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) case MP_WATER: if (v->type != VEH_SHIP) break; - if (IsDepotTypeTile(tile, TRANSPORT_WATER) && - IsTileOwner(tile, _local_player)) { + if (IsShipDepot(tile) && IsTileOwner(tile, _local_player)) { TileIndex tile2 = GetOtherShipDepotTile(tile); order.MakeGoToDepot(GetDepotByTile(tile < tile2 ? tile : tile2)->index, ODTFB_PART_OF_ORDERS); |