for (f = 0; f < 2; f++)
	{
		if (environment.bird[f].exist)
		{
			environment.bird[f].pozice.x+=3;
			if (environment.bird[f].change_y_dir && environment.bird[f].py > 180 && rnd(1) == 0)
			{
				environment.bird[f].change_y_dir = false;
				environment.bird[f].py = 0;
				environment.bird[f].px = (float)rnd(2,3);
	
				environment.bird[f].old_radius = environment.bird[f].radius;
				environment.bird[f].radius = rnd(10,30);
				environment.bird[f].pozice.y -= (environment.bird[f].old_radius + environment.bird[f].radius);
	
			}
			if ((environment.bird[f].py += environment.bird[f].px) > 360) 
			{
				environment.bird[f].old_radius = environment.bird[f].radius;
				environment.bird[f].radius = rnd(10,50);
				environment.bird[f].pozice.y += (environment.bird[f].old_radius - environment.bird[f].radius);
				environment.bird[f].px = (float)rnd(2,3);
				if (rnd(1) == 0) 
				{
					environment.bird[f].py = 180.0f;
					environment.bird[f].pozice.y += environment.bird[f].radius * 2;
					environment.bird[f].change_y_dir = false;
				}
				else 
				{
					environment.bird[f].py = 0.0f;
					environment.bird[f].change_y_dir = true;
				}
			}
			environment.bird[f].y = cos(environment.bird[f].py * DEG2RAD) * (float)environment.bird[f].radius;
			environment.bird[f].poc++;
			if (environment.bird[f].poc > 1)
			{
				environment.bird[f].frame++;
				if (environment.bird[f].frame == 13) environment.bird[f].frame = 0;
				environment.bird[f].poc = 0;
			}
			if (environment.bird[f].pozice.x < 1920 && environment.bird[f].pozice.x > - 60)
			{
				set_rect(rcRect, 1080 + environment.bird[f].frame*60, 90, 1140 + environment.bird[f].frame*60, 150);
				set_vector_f((float)environment.bird[f].pozice.x, (float)environment.bird[f].pozice.y + environment.bird[f].y);
				main_sprite->Draw(animations5_texture, &rcRect, NULL, &vector, D3DCOLOR_ARGB(255,gamedata.visibility,gamedata.visibility,gamedata.visibility));
			}
			if (environment.bird[f].pozice.x > 1920) environment.bird[f].exist = false;
		}
		else if (f == 0)
		{
			if (environment.bird[f].showtime == 0) environment.bird[f].showtime = 7000 + rnd(21000);
			else if (--environment.bird[f].showtime == 0) reset_bats();
		}
	}