mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
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:
parent
1432923240
commit
4c9b7d668a
@ -21,8 +21,13 @@ int Audio_SoundsVolume, Audio_MusicVolume;
|
|||||||
static void Audio_Init(void) { }
|
static void Audio_Init(void) { }
|
||||||
static void Audio_Free(void) { }
|
static void Audio_Free(void) { }
|
||||||
|
|
||||||
void Audio_SetMusic(int volume) { }
|
void Audio_SetMusic(int volume) {
|
||||||
void Audio_SetSounds(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_PlayDigSound(cc_uint8 type) { }
|
||||||
void Audio_PlayStepSound(cc_uint8 type) { }
|
void Audio_PlayStepSound(cc_uint8 type) { }
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user