summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.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/vehicle_gui.cpp
parent33cadd5043d8ecf82bdeb10efb2d44528e612846 (diff)
downloadopenttd-5678febfe22b9cee3ae90d8335c7969c76c4a6fb.tar.xz
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 22dced73e..9ee47a19b 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -939,7 +939,7 @@ static void DrawSmallOrderList(const Vehicle *v, int x, int y)
sel--;
if (order->type == OT_GOTO_STATION) {
- if (v->type == VEH_Ship && IsBuoy(GetStation(order->dest))) continue;
+ if (v->type == VEH_Ship && GetStation(order->dest)->IsBuoy()) continue;
SetDParam(0, order->dest);
DrawString(x, y, STR_A036, 0);