Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 13, 2009, 3:39:54 PM (15 years ago)
Author:
dafrick
Message:

Erradicated an infinite loop, and some wannabe-memory leaks. Also started the positioning of the notifications. I'd actually call it usable at this point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationOverlay.cc

    r2781 r2783  
    8787    }
    8888
    89     const std::string NotificationOverlay::clipMessage(const std::string & str)
     89    const std::string NotificationOverlay::clipMessage(const std::string & message)
    9090    {
    91         if(str.length() <= (unsigned int)this->queue_->getNotificationLength())
    92             return str;
    93         return str.substr(0, this->queue_->getNotificationLength());
     91        if(message.length() <= (unsigned int)this->queue_->getNotificationLength())
     92            return message;
     93        return message.substr(0, this->queue_->getNotificationLength());
    9494    }
    9595
Note: See TracChangeset for help on using the changeset viewer.