1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-24 20:59:58 +01:00
This commit is contained in:
Miloslav Číž 2018-09-04 19:35:30 +02:00
parent 2f351a7d66
commit 4d2b748a4c

View file

@ -311,7 +311,6 @@ uint16_t sqrtInt(uint_maybe32_t value)
profileCall(sqrtInt); profileCall(sqrtInt);
uint_maybe32_t result = 0; uint_maybe32_t result = 0;
uint_maybe32_t a = value; uint_maybe32_t a = value;
#ifdef RAYCAST_TINY #ifdef RAYCAST_TINY
@ -767,7 +766,7 @@ Vector2D normalize(Vector2D v)
Unit l = len(v); Unit l = len(v);
l = l == 0 ? 1 : l; l = l != 0 ? l : 1;
result.x = (v.x * UNITS_PER_SQUARE) / l; result.x = (v.x * UNITS_PER_SQUARE) / l;
result.y = (v.y * UNITS_PER_SQUARE) / l; result.y = (v.y * UNITS_PER_SQUARE) / l;