Changeset 8039 for code/branches
- Timestamp:
- Mar 7, 2011, 12:08:27 AM (14 years ago)
- Location:
- code/branches/usability
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/levels/presentationFS102.oxw
r7679 r8039 1 1 <LevelInfo 2 name = "Presentation XI FPS "2 name = "Presentation XI FPS 1st" 3 3 description = "2nd Presentation level for Orxonox Convention XI, FPS" 4 4 tags = "presentation" -
code/branches/usability/data/levels/presentationFS10Ed.oxw
r7679 r8039 1 1 <LevelInfo 2 name = "Presentation XI FPS "2 name = "Presentation XI FPS 2nd" 3 3 description = "3rd Presentation level for Orxonox Convention XI, FPS" 4 4 tags = "presentation" -
code/branches/usability/src/orxonox/LevelManager.cc
r7999 r8039 251 251 // Iterate over all the found *.oxw files 252 252 COUT(3) << "Loading LevelInfos..." << std::endl; 253 std::set<std::string> names; 253 254 for (Ogre::StringVector::const_iterator it = levels->begin(); it != levels->end(); ++it) 254 255 { … … 277 278 } 278 279 280 // Warn about levels with the same name. 281 if(!names.insert(info->getName()).second) 282 COUT(2) << "Warning: Multiple levels (" << info->getXMLFilename() << ") with name '" << info->getName() << "' found!" << std::endl; 283 279 284 // Warn about multiple items so that it gets fixed quickly 280 285 if(availableLevels_.find(info) != availableLevels_.end()) 281 286 { 282 COUT(2) << "Warning: Multiple levels with name '" << info->getName() << "' found!" << std::endl;287 COUT(2) << "Warning: Multiple levels (" << info->getXMLFilename() << ") with same name '" << info->getName() << "' and filename found! Exluding..." << std::endl; 283 288 // Delete LevelInfoItem to avoid a dangling pointer 284 289 delete info;
Note: See TracChangeset
for help on using the changeset viewer.