From 789d722dace2725d78479da4edb268440a52959c Mon Sep 17 00:00:00 2001 From: b1indy Date: Sat, 1 Sep 2007 10:58:56 +0000 Subject: 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 --- Game/Code/Screens/UScreenSong.pas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Game/Code/Screens/UScreenSong.pas') 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; -- cgit v1.2.3