aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenTop5.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-26 16:42:48 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-26 16:42:48 +0000
commitbd869ae129f42fbe2489f1f9ecf333af4dd7195a (patch)
treeae779868f5a4e9c98400fefcd5eed65bb2d1e19d /Game/Code/Screens/UScreenTop5.pas
parent00c2f58d7e51b9d4513e6d6bcc6f6299b427cc93 (diff)
downloadusdx-bd869ae129f42fbe2489f1f9ecf333af4dd7195a.tar.gz
usdx-bd869ae129f42fbe2489f1f9ecf333af4dd7195a.tar.xz
usdx-bd869ae129f42fbe2489f1f9ecf333af4dd7195a.zip
Fixed Score Bug in Brunch
It was caused by display class calling OnShow event 2 times Some CleanUp in UScreenTop5 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.01@530 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenTop5.pas')
-rw-r--r--Game/Code/Screens/UScreenTop5.pas6
1 files changed, 2 insertions, 4 deletions
diff --git a/Game/Code/Screens/UScreenTop5.pas b/Game/Code/Screens/UScreenTop5.pas
index 4d542bf0..57c61aa7 100644
--- a/Game/Code/Screens/UScreenTop5.pas
+++ b/Game/Code/Screens/UScreenTop5.pas
@@ -83,12 +83,10 @@ var
begin
Fadeout := false;
- //ReadScore(AktSong);
+ PMax := PlayersPlay - 1;
- PMax := Ini.Players;
- if Ini.Players = 4 then Ini.Players := 5;
for I := 0 to PMax do
- DataBase.AddScore(AktSong, Ini.Difficulty, Ini.Name[I], Round(Player[I].ScoreTotalI));
+ DataBase.AddScore(AktSong, Ini.Difficulty, Ini.Name[I], Player[I].ScoreTotalI);
DataBase.WriteScore(AktSong);
DataBase.ReadScore(AktSong);