]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameInitDispose.cpp
Cleanup sound emission
[lugaru.git] / Source / GameInitDispose.cpp
index ed1edac3ce8320c059b334963de618eae55734af..a2f93b98502158c19c4f536631f8192c48d22f9e 100644 (file)
@@ -1260,12 +1260,7 @@ void Game::LoadStuff()
        }
 
        if(targetlevel!=7){
-               float gLoc[3]={0,0,0};
-               float vel[3]={0,0,0};
-               PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
-               OPENAL_3D_SetAttributes(channels[fireendsound], gLoc, vel);
-               OPENAL_SetVolume(channels[fireendsound], 256);
-               OPENAL_SetPaused(channels[fireendsound], false);
+               emit_sound_at(fireendsound);
        }
 
        stillloading=0;