priority & distance based sound scheduler

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1787 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-04-12 20:06:28 +00:00
parent f2f0ec4994
commit f67e6493c8
8 changed files with 180 additions and 102 deletions
+2 -2
View File
@@ -169,12 +169,12 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
{
playerent *d = getclient(getint(p));
if(d) d->lastvoicecom = lastmillis;
playsound(getint(p));
playsound(getint(p), SP_HIGH);
break;
}
case SV_VOICECOM:
{
playsound(getint(p));
playsound(getint(p), SP_HIGH);
if(d) d->lastvoicecom = lastmillis;
break;
}