var draw_top_end = false; with (upper_vine) { if ((image_index % 10) == 0) draw_top_end = true; } if (image_index != (image_index_start + 4)) { d3d_set_fog(true, dark_blend, 0, 1); draw_sprite_ext(sprite_index, image_index_start + 9, x, y, 2, 2, 0, c_white, 0.5); d3d_set_fog(false, c_white, 0, 1); } if (draw_top_end) draw_sprite_ext(sprite_index, image_index, x, y - 40, 2, 2, 0, c_white, 1); draw_sprite_ext(sprite_index, image_index + 5, x, y, 2, 2, 0, c_white, 1);