diff --git a/source/common/notify.cpp b/source/common/notify.cpp index cbc5a4b..d75bc5e 100644 --- a/source/common/notify.cpp +++ b/source/common/notify.cpp @@ -30,7 +30,7 @@ Notify::~Notify() // Dibuja las notificaciones por pantalla void Notify::render() { - for (int i = 0; i < (int)notifications.size(); ++i) + for (int i = (int)notifications.size() - 1; i >= 0; --i) { notifications.at(i).sprite->render(); } @@ -112,7 +112,8 @@ void Notify::showText(std::string text) const int despH = this->text->getCharacterSize() / 2; const int despV = despH; const int travelDist = height + despV; - const int offset = (int)notifications.size() * (travelDist) + despV; + // const int offset = (int)notifications.size() * (travelDist) + despV; + const int offset = (int)notifications.size() > 0 ? notifications.back().y + travelDist : despV; // Crea la notificacion notification_t n;