aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base/UMain.pas6
1 files changed, 5 insertions, 1 deletions
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?