Changeset 5211 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Sep 21, 2005, 2:21:41 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5115 r5211 161 161 } 162 162 delete this->entities; 163 delete it; 163 164 } 164 165 -
trunk/src/story_entities/world.cc
r5209 r5211 165 165 this->setName(name); 166 166 this->debugWorldNr = worldID; 167 167 this->gameTime = 0.0f; 168 168 this->setSpeed(1.0); 169 169 this->music = NULL; 170 this->shell = NULL; 171 this->entities = NULL; 170 172 } 171 173 … … 259 261 // load the parameters 260 262 // name 261 char* temp;262 263 const char* string = grabParameter( root, "name"); 263 264 if( string == NULL) 264 265 { 265 266 PRINTF(2)("World is missing a proper 'name'\n"); 266 string = "Unknown"; 267 temp = new char[strlen(string)+1]; 268 strcpy( temp, string); 269 this->setName(temp); 267 this->setName("Unknown"); 270 268 } 271 269 else 272 270 { 273 temp = new char[strlen(string )+1]; 274 strcpy( temp, string); 275 this->setName(temp); 271 this->setName(string); 276 272 } 277 273 … … 478 474 ClassList::debug(); 479 475 480 this->music = (OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL);481 music->playback();476 this->music = NULL;//(OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL); 477 //music->playback(); 482 478 } 483 479
Note: See TracChangeset
for help on using the changeset viewer.