Changeset 7288 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Apr 13, 2006, 11:20:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7287 r7288 140 140 GameWorld* gw = (GameWorld*)gameWorld; 141 141 printf("STARTIG AUDIO THREAD\n"); 142 if(gw->dataTank && gw->dataTank->music != NULL) 143 gw->dataTank->music->playback(); 144 142 145 while (gw->bRunning) 143 146 { 144 if(gw->dataTank ->music != NULL)145 gw->dataTank->music-> playback();147 if(gw->dataTank && gw->dataTank->music != NULL) 148 gw->dataTank->music->update(); 146 149 SDL_Delay(5); 147 150 } … … 234 237 this->bRunning = false; 235 238 236 // SDL_KillThread(this->audioThread);239 // SDL_KillThread(this->audioThread); 237 240 this->audioThread = NULL; 238 241 } … … 396 399 PNode::getNullParent()->updateNode (this->dtS); 397 400 SoundEngine::getInstance()->update(); 398 399 if (this->dataTank->music != NULL)400 this->dataTank->music->update();401 401 } 402 402 … … 412 412 this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ)); 413 413 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00), 414 this->dataTank->objectManager->getObjectList(OM_GROUP_01));414 this->dataTank->objectManager->getObjectList(OM_GROUP_01)); 415 415 416 416 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
Note: See TracChangeset
for help on using the changeset viewer.