save muted sounds in config/saved.cfg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3706 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-21 02:08:07 +00:00
parent 309f401587
commit 480a9a0162
3 changed files with 8 additions and 0 deletions
+5
View File
@@ -1754,6 +1754,11 @@ void mutesound(int n, int off)
COMMAND(unmuteallsounds, ARG_NONE);
COMMAND(mutesound, ARG_2INT);
void writesoundconfig(FILE *f)
{
loopv(gamesounds) if(gamesounds[i].muted) fprintf(f, "mutesound %d\n", i);
}
VARP(maxsoundsatonce, 0, 10, 100);
location *playsound(int n, const worldobjreference &r, int priority, float offset, bool loop)