Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 1:42:17 AM (15 years ago)
Author:
rgrieder
Message:
  • updated msvc files
  • Fixed build by including util/Integer.h in NetworkPrereqs.h instead of util/Math.h
  • Fixed issue with a this pointer used in the base class c'tor initialisation
  • Fixed build under windows: INFINITE seems to be a macro, defined in winbase.h. Constant was somewhere in the quest files.
  • Fixed build: Only integral types can have header-file value when declared as static const. Float is not supported by the standard.
  • Fixed a potential bug in Planet.cc: "if (cond) doOne; doTwo" —> missing brances (indentation was correct, so I assume there have to be brances)
  • Corrected lots of indentation problems with tabs/spaces mix.
  • Changed all "@file Blubb.h" to "@file": Doxygen then assumes the actual filename. This gives more flexibility.
File:
1 edited

Legend:

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

    r2385 r2435  
    3636#include "NotificationQueue.h"
    3737
    38 namespace orxonox {
    39 
     38namespace orxonox
     39{
    4040    std::list<NotificationContainer*> NotificationManager::notifications_s;
    4141
     
    5555   
    5656        for (std::list<NotificationContainer*>::iterator notification = notifications_s.begin(); notification != notifications_s.end(); ++notification)
    57         {
     57        {
    5858            NotificationContainer* container = *notification;
    5959            if(container->remainingTime == 0)
    6060            {
    6161                continue;
    62             }
    63             else if(container->remainingTime - dt <= 0)
    64             {
    65                container->remainingTime = 0;
    66                update = true;
    67             }
    68             else
    69             {
     62            }
     63            else if(container->remainingTime - dt <= 0)
     64            {
     65                container->remainingTime = 0;
     66                update = true;
     67            }
     68            else
     69            {
    7070                container->remainingTime = container->remainingTime -dt;
    71             }
    72         }
    73        
    74         if(update)
     71            }
     72        }
     73   
     74        if(update)
    7575            updateQueue();
    7676    }
     
    8181            return false;
    8282           
    83         NotificationContainer* container = new NotificationContainer;
    84         container->notification = notification;
    85         container->remainingTime = notification->getDisplayTime();
     83        NotificationContainer* container = new NotificationContainer;
     84        container->notification = notification;
     85        container->remainingTime = notification->getDisplayTime();
    8686        notifications_s.push_front(container);
    8787       
     
    105105                continue;
    106106           
    107             text = text + "\n\n\n------------\n\n" + clipMessage(container->notification->getTitle()) + "\n\n" + clipMessage(container->notification->getMessage());
     107            text = text + "\n\n\n------------\n\n" + clipMessage(container->notification->getTitle()) + "\n\n" + clipMessage(container->notification->getMessage());
    108108        }
    109109       
Note: See TracChangeset for help on using the changeset viewer.