Changeset 2783 for code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationOverlay.cc
- Timestamp:
- Mar 13, 2009, 3:39:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationOverlay.cc
r2781 r2783 87 87 } 88 88 89 const std::string NotificationOverlay::clipMessage(const std::string & str)89 const std::string NotificationOverlay::clipMessage(const std::string & message) 90 90 { 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()); 94 94 } 95 95
Note: See TracChangeset
for help on using the changeset viewer.