diff options
author | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-09-01 10:58:56 +0000 |
---|---|---|
committer | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-09-01 10:58:56 +0000 |
commit | 789d722dace2725d78479da4edb268440a52959c (patch) | |
tree | 560543b9f5d5705190d9c1fdb473fbc5b05c2402 /Game | |
parent | 2eb975519b22f3e2cb3e578abbb51cc7f7060b0d (diff) | |
download | usdx-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 '')
-rw-r--r-- | Game/Code/Screens/UScreenSong.pas | 7 |
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;
|