summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-10 19:18:51 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-10 19:18:51 +0000
commitd783595135ca768ae14f08aa4033dea35ed0458b (patch)
treeb653d2b0bc34e6d903902d19a6c3b2f1d1ead176 /src/sound.c
parentec218f423abf60b6e776d7a5a9ebee408de45a60 (diff)
- 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
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c10
1 files changed, 8 insertions, 2 deletions
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) );
}