neteja cppcheck (105 → 0)
This commit is contained in:
@@ -562,14 +562,13 @@ void Background::createMoonPath() {
|
||||
const int FREEZE_START_INDEX = static_cast<int>(NUM_STEPS * (1.0F - FREEZE_PERCENTAGE));
|
||||
|
||||
for (int i = 0; i < NUM_STEPS; ++i) {
|
||||
double theta = i * STEP;
|
||||
float x = CENTER_X + (RADIUS * cos(theta));
|
||||
float y = CENTER_Y - (RADIUS * sin(theta));
|
||||
|
||||
if (i >= FREEZE_START_INDEX && !moon_path_.empty()) {
|
||||
moon_path_.push_back(moon_path_.back()); // Repite el último punto válido
|
||||
} else {
|
||||
moon_path_.push_back({.x = x, .y = y});
|
||||
const double THETA = i * STEP;
|
||||
const float X = CENTER_X + (RADIUS * cos(THETA));
|
||||
const float Y = CENTER_Y - (RADIUS * sin(THETA));
|
||||
moon_path_.push_back({.x = X, .y = Y});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user