From: Jorrit T. <jo...@us...> - 2004-12-28 07:03:12
|
Update of /cvsroot/planeshift/planeshift/src/client/sound In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9700/src/client/sound Modified Files: pssoundmngr.cpp Log Message: - Fixed a bug in the sound manager where it would forget to test for a NULL currentSoundSector. Index: pssoundmngr.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/sound/pssoundmngr.cpp,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** pssoundmngr.cpp 27 Dec 2004 23:56:17 -0000 1.75 --- pssoundmngr.cpp 28 Dec 2004 07:02:28 -0000 1.76 *************** *** 563,568 **** // Transfer sound settings ! currentSoundSector->Music(musicEnabled); ! currentSoundSector->Sounds(soundEnabled); // mapSoundSystem::EnterSector must be called BEFORE entering the new sector or the new --- 563,571 ---- // Transfer sound settings ! if ( currentSoundSector ) ! { ! currentSoundSector->Music(musicEnabled); ! currentSoundSector->Sounds(soundEnabled); ! } // mapSoundSystem::EnterSector must be called BEFORE entering the new sector or the new |