File diff r12499:2e177e6e0453 → r12500:5e5dd00d1e93
src/ai/api/ai_order.cpp
Show inline comments
 
@@ -179,9 +179,9 @@ static const Order *ResolveOrder(Vehicle
 

	
 
		case OT_GOTO_STATION: {
 
			const Station *st = ::Station::Get(order->GetDestination());
 
			if (st->train_tile != INVALID_TILE) {
 
				for (uint i = 0; i < st->trainst_w; i++) {
 
					TileIndex t = st->train_tile + TileDiffXY(i, 0);
 
			if (st->train_station.tile != INVALID_TILE) {
 
				for (uint i = 0; i < st->train_station.w; i++) {
 
					TileIndex t = st->train_station.tile + TileDiffXY(i, 0);
 
					if (st->TileBelongsToRailStation(t)) return t;
 
				}
 
			} else if (st->dock_tile != INVALID_TILE) {