enable new VoiceComs

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5520 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-08-02 18:15:22 +00:00
parent 2de4985fe0
commit ea5bf0cca6
5 changed files with 30 additions and 11 deletions
+2 -2
View File
@@ -409,9 +409,9 @@ void voicecom(char *sound, char *text)
{
defformatstring(soundpath)("voicecom/%s", sound);
int s = audiomgr.findsound(soundpath, 0, gamesounds);
if(s < 0 || s < S_AFFIRMATIVE || s > S_NICESHOT) return;
if(s < 0 || s < S_AFFIRMATIVE || s > S_AWESOME) return;
audiomgr.playsound(s, SP_HIGH);
if(s == S_NICESHOT) // public
if(s >= S_NICESHOT) // public
{
addmsg(SV_VOICECOM, "ri", s);
toserver(text);