Fixed compile errors on C++20

This commit is contained in:
INeedBots
2020-12-09 13:13:34 -06:00
parent 7d8050a7c6
commit eeb70a7da4
24 changed files with 64 additions and 64 deletions

View File

@ -693,7 +693,7 @@ namespace Game
void Vec3Normalize(vec3_t& vec)
{
const auto length = std::sqrt(std::pow(vec[0], 2) + std::pow(vec[1], 2) + std::pow(vec[2], 2));
const float length = static_cast<float>(std::sqrt(std::pow(vec[0], 2) + std::pow(vec[1], 2) + std::pow(vec[2], 2)));
vec[0] /= length;
vec[1] /= length;
vec[2] /= length;