Skip to content

Commit

Permalink
hud_custom: Set flDamage type explicitly
Browse files Browse the repository at this point in the history
It was assigned an int leading to precision loss and warnings.
  • Loading branch information
YaLTeR committed Feb 5, 2022
1 parent c7d03ac commit dbb878a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BunnymodXT/hud_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ namespace CustomHud

auto time = ServerDLL::GetInstance().GetTime();
auto v_forward = ClientDLL::GetInstance().AnglesToForward(player.viewangles);
auto flDamage = 200;
float flDamage = 200;
if (time < 4.0f)
flDamage = 200 * time / 4;

Expand Down

0 comments on commit dbb878a

Please sign in to comment.