X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.cpp;h=d68ee1154e7320edde2216daa4e90067d06f0871;hb=85f9eeb8f438d6d542c0c7b7446b31585cc9c23d;hp=241914c63b716d0734d25cd5fa0c0dcf390134df;hpb=1df9856bb875811f00e685eb185c54fd0a828276;p=lugaru.git diff --git a/Source/Game.cpp b/Source/Game.cpp index 241914c..d68ee11 100644 --- a/Source/Game.cpp +++ b/Source/Game.cpp @@ -3,7 +3,6 @@ #include "SDL_thread.h" extern int mainmenu; -extern OPENAL_SAMPLE *samp[100]; extern int channels[100]; extern "C" void PlaySoundEx(int channel, OPENAL_SAMPLE *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused); @@ -221,12 +220,10 @@ typedef struct { void Game::fireSound(int sound) { float gLoc[3]={0,0,0}; float vel[3]={0,0,0}; - OPENAL_Sample_SetMinMaxDistance(samp[sound], 9999.0f, 99999.0f); PlaySoundEx( sound, samp[sound], NULL, true); OPENAL_3D_SetAttributes(channels[sound], gLoc, vel); OPENAL_SetVolume(channels[sound], 256); OPENAL_SetPaused(channels[sound], false); - OPENAL_Sample_SetMinMaxDistance(samp[sound], 8.0f, 2000.0f); } void Game::inputText(char* str, int* charselected, int* nb_chars) {