aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-06-29 01:43:51 +0000
committers_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-06-29 01:43:51 +0000
commitd9341fd1b98b39b641f1ab0d216cbc0daedcc67f (patch)
tree88c48c1bb0c30daf2fa67115c2594173adedf375
parentfb2239eb2564cf295360642afc353589dcc6396f (diff)
downloadusdx-d9341fd1b98b39b641f1ab0d216cbc0daedcc67f.tar.gz
usdx-d9341fd1b98b39b641f1ab0d216cbc0daedcc67f.tar.xz
usdx-d9341fd1b98b39b641f1ab0d216cbc0daedcc67f.zip
fixed bug #88
fixed bug, that under some circumstances you got line bonus even with no input https://www.assembla.com/spaces/usdx/tickets/88-get-sometimes-10-points-linebonus-even-with-no-input git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1839 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/screens/UScreenSing.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas
index ae75c74d..9dd25cd1 100644
--- a/src/screens/UScreenSing.pas
+++ b/src/screens/UScreenSing.pas
@@ -899,9 +899,9 @@ begin
LineScore := CurrentScore - CurrentPlayer.ScoreLast;
// determine LinePerfection
- // Note: the "+2" extra points are a little bonus so the player does not
+ // Note: the "-2" extra points are a little bonus so the player does not
// have to be that perfect to reach the bonus steps.
- LinePerfection := (LineScore + 2) / MaxLineScore;
+ LinePerfection := LineScore / (MaxLineScore - 2);
// clamp LinePerfection to range [0..1]
if (LinePerfection < 0) then