oldbonus prio fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2704 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-09-18 22:47:33 +00:00
parent d718f48704
commit 5521df438e
+1 -1
View File
@@ -364,7 +364,7 @@ struct sourcescheduler
vec otherpos = s->position();
float otherdist = otherpos.iszero() ? 0.0f : camera1->o.dist(otherpos);
float otherscore = (s->priority*soundschedpriorityscore) - (otherdist*soundscheddistancescore) - soundschedoldbonus;
float otherscore = (s->priority*soundschedpriorityscore) - (otherdist*soundscheddistancescore) + soundschedoldbonus;
if(!worstsource || otherscore < worstscore)
{
worstsource = s;