[Change] Disabled the unable to play sound warnings to not scare people
on the last collective missions.
This commit is contained in:
parent
b7cfc2bac2
commit
d4d40f63ff
@ -233,8 +233,10 @@ int sound_play(int sound) {
|
||||
|
||||
v->channel = Mix_PlayChannel(-1, sound_list[sound].buffer, 0);
|
||||
|
||||
/*
|
||||
if(v->channel < 0)
|
||||
WARN("Unable to play sound: %s", Mix_GetError());
|
||||
*/
|
||||
|
||||
v->state = VOICE_PLAYING;
|
||||
v->id = ++voice_genid;
|
||||
@ -277,10 +279,11 @@ int sound_playPos(int sound, double x, double y) {
|
||||
v->channel = Mix_PlayChannel(-1, sound_list[sound].buffer, 0);
|
||||
|
||||
if(v->channel < 0) {
|
||||
/*
|
||||
WARN("Unable to play sound: %s", Mix_GetError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
*/
|
||||
} else {
|
||||
/* Need to make sure distance doesn't overflow. */
|
||||
idist = (int)dist / 13.;
|
||||
if(idist > 255) idist = 255;
|
||||
@ -288,6 +291,7 @@ int sound_playPos(int sound, double x, double y) {
|
||||
WARN("Unable to set sound position: %s", Mix_GetError());
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Actually add the voice to the list. */
|
||||
v->state = VOICE_PLAYING;
|
||||
|
Loading…
Reference in New Issue
Block a user