Ray Bellis wrote: > > int height = 16384; > int step = height / 2; > while (step >= 0) { > if (hit_object_at_height(height)) { > height += step; > } else { > height -= step; > } > step /= 2; > } Oops - small bug - that (step >= 0) check should be (step > 0) Ray
Post a reply to this message