Fixed error in Bresenham because float conversion