linter: renombrar variables

This commit is contained in:
2025-10-24 10:33:18 +02:00
parent f50ad68f10
commit 357b5d5977
3 changed files with 13 additions and 13 deletions

View File

@@ -514,10 +514,10 @@ void Background::updateAlphaColorTexture(float delta_time) {
// 4. Actualiza el valor entero solo si ha cambiado lo suficiente
// Usamos std::round para un redondeo más natural.
const auto new_alpha = static_cast<size_t>(std::round(current_alpha_float_));
const auto NEW_ALPHA = static_cast<size_t>(std::round(current_alpha_float_));
if (new_alpha != previous_alpha_color_texture_) {
previous_alpha_color_texture_ = new_alpha;
if (NEW_ALPHA != previous_alpha_color_texture_) {
previous_alpha_color_texture_ = NEW_ALPHA;
// SDL espera un Uint8 (0-255), así que hacemos un cast seguro.
SDL_SetTextureAlphaMod(color_texture_, static_cast<Uint8>(previous_alpha_color_texture_));
}