Show an error message in chat when trying to enable sounds/music in web client.

This makes it absolutely clear that sound/music isn't broken, it's intentionally not supported currently.
This commit is contained in:
UnknownShadow200 2020-01-01 22:53:14 +11:00
parent 1432923240
commit 4c9b7d668a

View File

@ -21,8 +21,13 @@ int Audio_SoundsVolume, Audio_MusicVolume;
static void Audio_Init(void) { }
static void Audio_Free(void) { }
void Audio_SetMusic(int volume) { }
void Audio_SetSounds(int volume) { }
void Audio_SetMusic(int volume) {
if (volume) Chat_AddRaw("&cMusic is not supported currently");
}
void Audio_SetSounds(int volume) {
if (volume) Chat_AddRaw("&cSounds are not supported currently");
}
void Audio_PlayDigSound(cc_uint8 type) { }
void Audio_PlayStepSound(cc_uint8 type) { }
#else