Core/Movement: no longer randomize knockback directions

This commit is contained in:
Seyden authored and Ovahlord committed 2021-11-06 20:06:02 +01:00
1 parent 7a602d4b44
commit f5342061ba
1 file changed
+3 -3
+3 -3
View File
@@ -108,9 +108,9 @@ void Position::GetSinCos(const float x, const float y, float &vsin, float &vcos)
if (std::fabs(dx) < 0.001f && std::fabs(dy) < 0.001f)
{
float angle = (float)rand_norm()*static_cast<float>(2 * M_PI);
vcos = std::cos(angle);
vsin = std::sin(angle);
float o = NormalizeOrientation(GetOrientation() - M_PI);
vcos = std::cos(o);
vsin = std::sin(o);
}
else
{