summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-02-01 16:48:38 +0000
committercelestar <celestar@openttd.org>2007-02-01 16:48:38 +0000
commit5678febfe22b9cee3ae90d8335c7969c76c4a6fb (patch)
tree5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/order_cmd.cpp
parent33cadd5043d8ecf82bdeb10efb2d44528e612846 (diff)
downloadopenttd-5678febfe22b9cee3ae90d8335c7969c76c4a6fb.tar.xz
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 826f3584d..8b6fb7e50 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -198,7 +198,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
st = GetStation(new_order.dest);
- if (st->airport_type != AT_OILRIG && !IsBuoy(st) && !CheckOwnership(st->owner)) {
+ if (st->airport_type != AT_OILRIG && !st->IsBuoy() && !CheckOwnership(st->owner)) {
return CMD_ERROR;
}