From 5521df438e2be17d3cf2aaa26f792a5a9012a271 Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 18 Sep 2008 22:47:33 +0000 Subject: [PATCH] oldbonus prio fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2704 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 0d2303fc..b04bd63c 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -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;