remove braces

This commit is contained in:
Christian Semmler 2023-06-30 20:00:07 +02:00
parent c994ed7d16
commit 823b35a3ba
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -173,9 +173,8 @@ float LegoNavController::CalculateNewAccel(int p_pos, int p_center, float p_maxA
result = Abs(diff) * p_maxAccel / p_center;
if (result < p_minAccel) {
if (result < p_minAccel)
result = (float) p_minAccel;
}
return result;
}