Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2008, 6:11:42 PM (16 years ago)
Author:
dafrick
Message:

Some more debug output.

File:
1 edited

Legend:

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

    r2281 r2284  
    5353        bool update = false;
    5454   
    55         for (std::list<NotificationContainer*>::iterator notification = NotificationManager::notifications_s.begin(); notification != NotificationManager::notifications_s.end(); ++notification)
     55        for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end(); ++notification)
    5656        {
    5757            NotificationContainer* container = *notification;
     
    8383        container->notification = notification;
    8484        container->remainingTime = notification->getDisplayTime();
    85         NotificationManager::notifications_s.push_front(container);
     85        notifications_s.push_front(container);
    8686       
    8787        updateQueue();
    8888       
    89         COUT(3) << "Notification inserted, title: " << notification->getTitle() << std::endl;
     89        COUT(3) << "Notification inserted, title: " << notification->getTitle() << ", message: " << notification->getMessage() << std::endl;
    9090       
    9191        return true;
     
    9797       
    9898        int i = NotificationQueue::queue_s->getLength();
    99         for (std::list<NotificationContainer*>::iterator notification = NotificationManager::notifications_s.begin(); notification != NotificationManager::notifications_s.end() || i <= 0; ++notification)
    100         {
     99        for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end() || i <= 0; ++notification)
     100        {
    101101            i--;
    102102            NotificationContainer* container = *notification;
     
    105105           
    106106            text = text + "\n\n------------" + container->notification->getTitle(); + "\n" + container->notification->getMessage();
    107         }
    108        
    109         COUT(3) << "Queue updated: " << std::endl;
     107        }
     108
     109        COUT(3) << "Queue updated: " << text << std::endl;
    110110       
    111111        NotificationQueue::queue_s->setQueueText(text);
Note: See TracChangeset for help on using the changeset viewer.