fix: literal F, headers C++ i trailing return type

This commit is contained in:
2026-05-14 22:36:48 +02:00
parent ac93cfa7d7
commit b480a23c88
6 changed files with 40 additions and 40 deletions

View File

@@ -75,7 +75,7 @@ void Notifier::render() {
// Actualiza el estado de las notificaiones
void Notifier::update(float delta_time) {
// Base Y leída cada frame: cada notificación se dibuja en rect.y (relativo a BASE) + BASE
const float BASE = static_cast<float>(getStackBaseY());
const auto BASE = static_cast<float>(getStackBaseY());
for (auto& notification : notifications_) {
// Si la notificación anterior está "entrando", no hagas nada (stall del resto)
@@ -88,7 +88,7 @@ void Notifier::update(float delta_time) {
switch (notification.state) {
case Status::RISING: {
const float TARGET = static_cast<float>(notification.y);
const auto TARGET = static_cast<float>(notification.y);
notification.rect.y += SLIDE_SPEED * delta_time;
if (notification.rect.y >= TARGET) {
notification.rect.y = TARGET;
@@ -107,7 +107,7 @@ void Notifier::update(float delta_time) {
}
case Status::VANISHING: {
const float TARGET_Y = static_cast<float>(notification.y - notification.travel_dist);
const auto TARGET_Y = static_cast<float>(notification.y - notification.travel_dist);
notification.rect.y -= SLIDE_SPEED * delta_time;
if (notification.rect.y <= TARGET_Y) {
notification.rect.y = TARGET_Y;