aboutsummaryrefslogtreecommitdiffstats
path: root/src/screens/UScreenTop5.pas
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-07 21:47:43 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-07 21:47:43 +0000
commit526ba53e63926cf2837a9e8feb7cda3ac8526300 (patch)
tree7f36d4a3baaf9725cf00b1adcce723206455add8 /src/screens/UScreenTop5.pas
parentc3ddbfc1dbc470c1c52c6a3d2dea6f192aad059f (diff)
downloadusdx-526ba53e63926cf2837a9e8feb7cda3ac8526300.tar.gz
usdx-526ba53e63926cf2837a9e8feb7cda3ac8526300.tar.xz
usdx-526ba53e63926cf2837a9e8feb7cda3ac8526300.zip
add the score to db only if the song was sung to the end (last word of last sentence+length)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2002 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/screens/UScreenTop5.pas')
-rw-r--r--src/screens/UScreenTop5.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/UScreenTop5.pas b/src/screens/UScreenTop5.pas
index b0795f54..2ddff713 100644
--- a/src/screens/UScreenTop5.pas
+++ b/src/screens/UScreenTop5.pas
@@ -188,7 +188,7 @@ begin
PMax := 5;
for I := 0 to PMax do
begin
- if (Round(Player[I].ScoreTotalInt) > 0) then
+ if (Round(Player[I].ScoreTotalInt) > 0) and (ScreenSing.SungToEnd) then
begin
DataBase.AddScore(CurrentSong, Ini.Difficulty, Ini.Name[I], Round(Player[I].ScoreTotalInt));
sung:=true;