Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 666


Ignore:
Timestamp:
Dec 21, 2007, 11:12:05 AM (16 years ago)
Author:
nicolasc
Message:
  • added initialisation of random generator
  • music starts at a random piece
Location:
code/branches/FICN/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/audio/AudioManager.cc

    r585 r666  
    5151        void AudioManager::ambientStart()
    5252        {
    53                 currentBgSound = 0;
     53//              currentBgSound = 0;
     54    currentBgSound = rand() % bgSounds.size();
    5455                if (bgSounds.size() > 0)
    5556                {
  • code/branches/FICN/src/orxonox/Main.cc

    r622 r666  
    117117#endif
    118118    try {
     119      srand(time(0));  //initaialize RNG; TODO check if it works on win
    119120      SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log");
    120121      Orxonox* orx = Orxonox::getSingleton();
Note: See TracChangeset for help on using the changeset viewer.