Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7311 in orxonox.OLD


Ignore:
Timestamp:
Apr 17, 2006, 12:28:16 AM (18 years ago)
Author:
bensch
Message:

minor

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/ogg_player.cc

    r7310 r7311  
    277277  if(!this->stream(this->buffers[0]) || !this->stream(this->buffers[1]))
    278278  {
    279     return false;
    280279    SDL_mutexV(this->musicMutex);
     280    this->state &= ~OggPlayer::Playing;
     281    return false;
    281282  }
    282283
  • trunk/src/story_entities/game_world_data.cc

    r7299 r7311  
    269269    delete this->localPlayer;
    270270  State::setPlayer(NULL);
     271  this->localPlayer = NULL;
     272  this->localCamera = NULL;
     273  State::setCamera(NULL, NULL);
     274  this->sky = NULL;
     275  this->terrain = NULL;
    271276
    272277  nodeList = ClassList::getList(CL_GRAPHICS_EFFECT);
     
    292297    delete this->objectManager;
    293298  }
     299  this->objectManager = NULL;
    294300
    295301  if(State::getSkyBox())
    296302    State::setSkyBox(NULL);
    297303
    298   glmis = NULL;
    299   localCamera = NULL;
    300   localPlayer = NULL;
    301   State::setCamera(NULL, NULL);
    302   sky = NULL;
    303   terrain = NULL;
    304   objectManager = NULL;
     304  this->glmis = NULL;
    305305}
    306306
     
    344344  if (this->music != NULL)
    345345    this->setSoundTrack("");
    346   this->music = NULL;
    347346
    348347  /* unload the shaders */
Note: See TracChangeset for help on using the changeset viewer.