Skip to content

Commit

Permalink
fix incorrect float truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco149 committed Dec 14, 2018
1 parent ba1d140 commit 5a0d1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oppai.c
Expand Up @@ -2484,7 +2484,7 @@ int ppv2x(pp_calc_t* pp, float aim, float speed, float base_ar,
if (mods & MODS_FL) {
float fl_bonus = 1.0f + 0.35f * mymin(1.0f, nobjects / 200.0f);
if (nobjects > 200) {
fl_bonus += 0.3f * mymin(1, (nobjects - 200) / 200);
fl_bonus += 0.3f * mymin(1, (nobjects - 200) / 200.0f);
}
if (nobjects > 500) {
fl_bonus += (nobjects - 500) / 1200.0f;
Expand Down

0 comments on commit 5a0d1b7

Please sign in to comment.