Fix build

This commit is contained in:
Federico Cecchetto 2021-09-07 01:50:46 +02:00
parent d1744db26d
commit 35ec4c665d

View File

@ -69,9 +69,9 @@ namespace fps
return; return;
} }
const auto speed = sqrt(pow(game::g_entities[0].client->velocity[0], 2) + const auto speed = (float)sqrt(pow(game::g_entities[0].client->velocity[0], 2) +
pow(game::g_entities[0].client->velocity[1], 2) + pow(game::g_entities[0].client->velocity[1], 2) +
pow(game::g_entities[0].client->velocity[2], 2)); pow(game::g_entities[0].client->velocity[2], 2));
if (cg_drawspeed->current.integer >= 1) if (cg_drawspeed->current.integer >= 1)
{ {
@ -83,7 +83,7 @@ namespace fps
const auto x = (screen_max[0] / 2) - (width / 2); const auto x = (screen_max[0] / 2) - (width / 2);
const auto y = screen_max[1] - 400.f; const auto y = screen_max[1] - 400.f;
const auto color = speed >= 300 const auto color = speed >= 300.f
? color_blue ? color_blue
: fps_color_bad; : fps_color_bad;