summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-25 21:15:17 +0000
committerrubidium <rubidium@openttd.org>2007-06-25 21:15:17 +0000
commit0dd445a827c61171d1c7e1d46b16b9d1bd933eb5 (patch)
treee9d80ab995f2d55b3712ee1f069427f6bc750f57 /src/station_cmd.cpp
parentc65c8f1cc94627c3435db32e6770025c4f5649d0 (diff)
downloadopenttd-0dd445a827c61171d1c7e1d46b16b9d1bd933eb5.tar.xz
(svn r10332) -Fix [FS#940]: ratings where also shown on drop-off stations.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index c26e218d1..514cf4185 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2544,7 +2544,7 @@ uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount)
if (around[i] == NULL) {
if (!st->IsBuoy() &&
(st->town->exclusive_counter == 0 || st->town->exclusivity == st->owner) && // check exclusive transport rights
- st->goods[type].rating != 0 && st->goods[type].days_since_pickup != 255 && // we actually service the station
+ st->goods[type].rating != 0 && st->goods[type].last_speed != 0 && // we actually service the station
(!_patches.selectgoods || st->goods[type].last_speed > 0) && // if last_speed is 0, no vehicle has been there.
((st->facilities & ~FACIL_BUS_STOP) != 0 || IsCargoInClass(type, CC_PASSENGERS)) && // if we have other fac. than a bus stop, or the cargo is passengers
((st->facilities & ~FACIL_TRUCK_STOP) != 0 || !IsCargoInClass(type, CC_PASSENGERS))) { // if we have other fac. than a cargo bay or the cargo is not passengers