added "soundmuted" command to check if sound is muted
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3707 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1751,8 +1751,14 @@ void mutesound(int n, int off)
|
||||
gamesounds[n].muted = mute;
|
||||
}
|
||||
|
||||
int soundmuted(int n)
|
||||
{
|
||||
return gamesounds.inrange(n) && gamesounds[n].muted ? 1 : 0;
|
||||
}
|
||||
|
||||
COMMAND(unmuteallsounds, ARG_NONE);
|
||||
COMMAND(mutesound, ARG_2INT);
|
||||
COMMAND(soundmuted, ARG_1EXP);
|
||||
|
||||
void writesoundconfig(FILE *f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user