summaryrefslogtreecommitdiff
path: root/src/station_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
commit4d0d6864ee38dd838d5b6717b3409b336eb7fbf9 (patch)
tree5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/station_cmd.cpp
parent51db81921c6cd56bfdc7c52b726542a20c19116f (diff)
downloadopenttd-4d0d6864ee38dd838d5b6717b3409b336eb7fbf9.tar.xz
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 7d3f7dbb9..ecc8b9148 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -541,7 +541,7 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
rect.min_y = MapSizeY();
rect.max_x = rect.max_y = 0;
// Don't update acceptance for a buoy
- if (IsBuoy(st)) return;
+ if (st->IsBuoy()) return;
/* old accepted goods types */
old_acc = GetAcceptanceMask(st);
@@ -2545,7 +2545,7 @@ uint MoveGoodsToStation(TileIndex tile, int w, int h, int type, uint amount)
for (i = 0; i != lengthof(around); i++) {
if (around[i] == NULL) {
- if (!IsBuoy(st) &&
+ if (!st->IsBuoy() &&
(st->town->exclusive_counter == 0 || st->town->exclusivity == st->owner) && // check exclusive transport rights
st->goods[type].rating != 0 &&
(!_patches.selectgoods || st->goods[type].last_speed > 0) && // if last_speed is 0, no vehicle has been there.