aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSong.pas
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-01 10:58:56 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-01 10:58:56 +0000
commit789d722dace2725d78479da4edb268440a52959c (patch)
tree560543b9f5d5705190d9c1fdb473fbc5b05c2402 /Game/Code/Screens/UScreenSong.pas
parent2eb975519b22f3e2cb3e578abbb51cc7f7060b0d (diff)
downloadusdx-789d722dace2725d78479da4edb268440a52959c.tar.gz
usdx-789d722dace2725d78479da4edb268440a52959c.tar.xz
usdx-789d722dace2725d78479da4edb268440a52959c.zip
fixed bug that caused display of wrong covers
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@355 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSong.pas')
-rw-r--r--Game/Code/Screens/UScreenSong.pas7
1 files changed, 4 insertions, 3 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas
index e346d59e..e75ed1ab 100644
--- a/Game/Code/Screens/UScreenSong.pas
+++ b/Game/Code/Screens/UScreenSong.pas
@@ -1159,6 +1159,7 @@ var
Angle: real;
Pos: Real;
VS: integer;
+ VS_hack: integer; // visible songs for the
diff: real;
X: Real;
begin
@@ -1213,13 +1214,13 @@ begin
// limit-bg-covers hack
if (abs(VS/2-abs(Pos))>10) then Button[B].Visible:=False;
- if VS > 25 then VS:=25;
+ if VS > 25 then VS_hack:=25 else VS_hack:=VS;
// end of limit-bg-covers hack
if Pos < 0 then
- Pos := (Pos - VS/2)/VS
+ Pos := (Pos - VS_hack/2)/VS_hack
else
- Pos := (Pos + VS/2)/VS;
+ Pos := (Pos + VS_hack/2)/VS_hack;
Angle := pi * Pos*2;