From 56d8cca83d92cfbfde7c6c295027d254610329bb Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Mon, 23 Feb 2009 23:40:22 +0000 Subject: serious code change. First trial to fix the score calculations. Please test git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1604 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/base/UMain.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/base/UMain.pas b/src/base/UMain.pas index 66a0823b..5e346456 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -829,7 +829,11 @@ var NoteHit: boolean; MaxSongPoints: integer; // max. points for the song (without line bonus) MaxLinePoints: real; // max. points for the current line + ScoreFactor: array[TNoteType] of integer; begin + ScoreFactor[ntFreestyle] := 0; + ScoreFactor[ntNormal] := 1; + ScoreFactor[ntGolden] := 2; // TODO: add duet mode support // use Lines[LineSetIndex] with LineSetIndex depending on the current player @@ -931,7 +935,7 @@ begin MaxSongPoints := MAX_SONG_SCORE; // Note: ScoreValue is the sum of all note values of the song - MaxLinePoints := MaxSongPoints / Lines[0].ScoreValue; + MaxLinePoints := MaxSongPoints / Lines[0].ScoreValue * ScoreFactor[CurrentLineFragment.NoteType]; // FIXME: is this correct? Why do we add the points for a whole line // if just one note is correct? -- cgit v1.2.3