Changeset - r33:0a71c809e6d0
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-08-12 22:29:37
darkvater@openttd.org
(svn r34) -Fix [990770] Cargo delivery area patch for bug #989322. If station sign was too far away, there were goods acceptance/delivery issues (Celstar)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
economy.c
Show inline comments
 
@@ -989,13 +989,13 @@ static void DeliverGoodsToIndustry(TileI
 
	Industry *ind, *best;	
 
	int t, u;
 

	
 
	/* Check if there's an industry close to the station that accepts
 
	 * the cargo */
 
	best = NULL;
 
	u = 0x11;
 
	u = _patches.station_spread + 8;
 
	for(ind = _industries; ind != endof(_industries); ind++) {
 
		if (ind->xy != 0 && (cargo_type == ind->accepts_cargo[0] || cargo_type
 
				 == ind->accepts_cargo[1] || cargo_type == ind->accepts_cargo[2]) &&
 
				 ind->produced_cargo[0] != 0xFF &&
 
				 ind->produced_cargo[0] != cargo_type &&
 
				 (t=GetTileDist(ind->xy, xy)) < u) {			
0 comments (0 inline, 0 general)