From f42201496093f04220e58b1c4cd4d69531839de4 Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 11 Aug 2004 22:07:08 +0000 Subject: (svn r23) -Some omments on the code (blathijs) --- station_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index e903d4ecc..3a9256420 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2232,8 +2232,8 @@ uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount) st->blocked_months == 0 && st->goods[type].rating != 0 && (!_patches.selectgoods || st->goods[type].last_speed) && // if last_speed is 0, no vehicle has been there. - ((st->facilities & (byte)~FACIL_BUS_STOP)!=0 || type==CT_PASSENGERS) && - ((st->facilities & (byte)~FACIL_TRUCK_STOP)!=0 || type!=CT_PASSENGERS)) { + ((st->facilities & (byte)~FACIL_BUS_STOP)!=0 || type==CT_PASSENGERS) && // if we have other fac. than a bus stop, or the cargo is passengers + ((st->facilities & (byte)~FACIL_TRUCK_STOP)!=0 || type!=CT_PASSENGERS)) { // if we have other fac. than a cargo bay or the cargo is not passengers around[i] = st_index; around_ptr[i] = st; -- cgit v1.2.3-54-g00ecf