1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-23 20:49:57 +01:00

Fix a bug

This commit is contained in:
Miloslav Číž 2018-08-30 10:09:52 +02:00
parent 1142ceb1ba
commit bb09c50496

View file

@ -195,7 +195,7 @@ Unit dist(Vector2D p1, Vector2D p2)
{
Unit dx = p2.x - p1.x;
Unit dy = p2.y - p1.y;
return sqrtInt(((uint16_t) dx * dx) + ((uint16_t) dy * dy));
return sqrtInt((dx * dx) + (dy * dy));
}
int8_t pointIsLeftOfRay(Vector2D point, Ray ray)