diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-09-21 17:41:16 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-09-21 17:41:16 +0000 |
commit | 8c649b5959469659555b162d55a736d69ec7725d (patch) | |
tree | 34f846366715fe1ec0f16b2784beec48bcdaaf80 /src/base | |
parent | 7209a59d1667d529fe42c592287ebe93935ad3f0 (diff) | |
download | usdx-8c649b5959469659555b162d55a736d69ec7725d.tar.gz usdx-8c649b5959469659555b162d55a736d69ec7725d.tar.xz usdx-8c649b5959469659555b162d55a736d69ec7725d.zip |
Repaired ratingbar algo, it was broken after some changes to avoid division by zero errors.
Still needs some finetuning according sensibility.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1392 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/USingScores.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/USingScores.pas b/src/base/USingScores.pas index e4c28701..59cdaf67 100644 --- a/src/base/USingScores.pas +++ b/src/base/USingScores.pas @@ -425,13 +425,13 @@ begin aPlayers[Cur.Player].ScoreDisplayed := aPlayers[Cur.Player].ScoreDisplayed + Cur.ScoreDiff - Cur.ScoreGiven; //Change Bars Position - lTempA := ( aPlayers[Cur.Player].RBTarget + (Cur.ScoreDiff - Cur.ScoreGiven) ); - lTempB := ( Cur.ScoreDiff * (Cur.Rating / 20 - 0.26) ); + lTempA := ( (Cur.ScoreDiff - Cur.ScoreGiven) ); + lTempB := ( Cur.ScoreDiff ); if ( lTempA > 0 ) AND ( lTempB > 0 ) THEN begin - aPlayers[Cur.Player].RBTarget := lTempA / lTempB; + aPlayers[Cur.Player].RBTarget := aPlayers[Cur.Player].RBTarget + lTempA / lTempB * (Cur.Rating / 20 - 0.26); end; If (aPlayers[Cur.Player].RBTarget > 1) then |