diff --git a/raycastlib.h b/raycastlib.h index f5092a4..b1a51eb 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -26,7 +26,7 @@ author: Miloslav "drummyfish" Ciz license: CC0 1.0 - version: 0.908d + version: 0.909d Version numbering: major.minor[d], id 'd' is appended, this is a in-development version based on the previous stable major.minor version. Two @@ -1784,7 +1784,7 @@ RCL_Unit RCL_castRay3D( ray.direction.x = pos2.x - pos1.x; ray.direction.y = pos2.y - pos1.y; - distance = RCL_len(ray.direction); + distance = RCL_nonZero(RCL_len(ray.direction)); ray.direction = RCL_normalize(ray.direction);