converted doubles to floats

This commit is contained in:
HorizonCode 2021-04-28 14:59:33 +02:00
parent b50c69ba69
commit a65dcc2f10
1 changed files with 4 additions and 4 deletions

View File

@ -2185,10 +2185,10 @@ int pp_std(ezpp_t ez) {
ez->speed_pp *= 0.96f + (od_squared / 1600.0f);
// REWORK: SPEED CHANGE before AR bonus
if (ez->speed_pp <= 200) // https://www.desmos.com/calculator/chklgsnpca?lang=de
ez->speed_pp = sin(ez->speed_pp * M_PI / 400) * 100;
if (ez->speed_pp <= 200.0f) // https://www.desmos.com/calculator/chklgsnpca?lang=de
ez->speed_pp = (float) sin(ez->speed_pp * M_PI / 400.0f) * 100.0f;
else {
ez->speed_pp = pow(ez->speed_pp, 0.8692f);
ez->speed_pp = (float) pow(ez->speed_pp, 0.8692f);
}
// REWORK END
@ -2208,7 +2208,7 @@ int pp_std(ezpp_t ez) {
if (ez->mods & MODS_FL) ez->acc_pp *= 1.02f;
// REWORK: ACC CHANGE
ez->acc_pp = pow(ez->acc_pp, 0.94f);
ez->acc_pp = (float) pow(ez->acc_pp, 0.94f);
// REWORK END
/* total pp -------------------------------------------------------- */