Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:40:00 PM (16 years ago)
Author:
dafrick
Message:
  • Created QuestListeners, they can be used to affect Objects due to status changes of quests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem3/src/orxonox/overlays/notifications/NotificationManager.cc

    r2287 r2328  
    9797       
    9898        int i = NotificationQueue::queue_s->getLength();
    99         for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end() || i <= 0; ++notification)
     99        for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end() && i > 0; ++notification)
    100100        {
    101101            i--;
    102102            NotificationContainer* container = *notification;
    103             if(container->remainingTime == 0)
     103            if(container->remainingTime == 0.0)
    104104                continue;
    105105           
    106106            COUT(3) << "Update, title: " << container->notification->getTitle() << ", message: " << container->notification->getMessage() << std::endl;
    107107           
    108             text = text + "\n\n\n------------" + container->notification->getTitle(); + "\n\n" + container->notification->getMessage();
     108            text = text + "\n\n\n------------" + container->notification->getTitle() + "\n\n" + container->notification->getMessage();
    109109        }
    110110
Note: See TracChangeset for help on using the changeset viewer.