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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user