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

View file

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