From d783595135ca768ae14f08aa4033dea35ed0458b Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 10 Feb 2008 19:18:51 +0000 Subject: - dopisane objekty do prvej areny - opravy zvuku ( ak sa neinicalizuje, program sa sprava ako keby sa inicalizoval ) - opravy v sietovom multiplayeri - porgram ma parametre ( zatial nezdokumentovane, je to iba vidiet zo zdrojaka ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@4 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/sound.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/sound.c') diff --git a/src/sound.c b/src/sound.c index 10f11d4..4d574b8 100644 --- a/src/sound.c +++ b/src/sound.c @@ -26,18 +26,19 @@ void initSound() if( isAudioInicialized() == FALSE ) { isSoundInit = FALSE; + return; } listSound = newList(); isSoundInit = TRUE; var_isSoundActive = TRUE; - if( isParamFlag("--nomusic") ) + if( isParamFlag("--nosound") ) { setSoundActive(FALSE); } - if( isParamFlag("--music") ) + if( isParamFlag("--sound") ) { setSoundActive(TRUE); } @@ -93,6 +94,11 @@ static void destroySound(sound_t *p) void addSound(char *file, char *name, int group) { + if( isSoundInit == FALSE ) + { + return; + } + addList( listSound, newSound(file, name, group) ); } -- cgit v1.2.3