converted doubles to floats
This commit is contained in:
parent
b50c69ba69
commit
a65dcc2f10
8
oppai.c
8
oppai.c
@ -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 -------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user