aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 11:33:40 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 11:33:40 +0000
commit04189268afb620a6a0d09a675f771c0df9f1264f (patch)
treec5b1a33056a57eaae6c72b474932e42b30cd2fda /Game/Code/Screens
parentd2f6ecd73457de4ca12603b57e6c5d2e135e5d2d (diff)
downloadusdx-04189268afb620a6a0d09a675f771c0df9f1264f.tar.gz
usdx-04189268afb620a6a0d09a675f771c0df9f1264f.tar.xz
usdx-04189268afb620a6a0d09a675f771c0df9f1264f.zip
Fixed a Bug in Jump to Letter: A and Z now Works correctly
Fixed a Bug in Skipto funktion that causes a wrong Song is Selected when Tabs=0. This was the Reason for some Bugs in Jump to and Random Functions. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@210 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenSong.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas
index 31d05dce..6f3bbc63 100644
--- a/Game/Code/Screens/UScreenSong.pas
+++ b/Game/Code/Screens/UScreenSong.pas
@@ -210,7 +210,7 @@ begin
+ KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
//Jump to Artist/Titel
- if (SDL_ModState and KMOD_LALT <> 0) AND (Mode = 0) AND (PressedKey > SDLK_A) AND (PressedKey < SDLK_Z) then
+ if (SDL_ModState and KMOD_LALT <> 0) AND (Mode = 0) AND (PressedKey >= SDLK_A) AND (PressedKey <= SDLK_Z) then
begin
Letter := UpCase(Chr(ScanCode));
I2 := Length(CatSongs.Song);
@@ -1441,7 +1441,7 @@ begin
if Button[Interaction].Texture.Name <> Skin.GetTextureFileName('SongCover') then
Texture.UnloadTexture(Button[Interaction].Texture.Name, false);
- Interaction := 0;
+ Interaction := High(CatSongs.Song);
SongTarget := 0;
for I := 1 to Target+1 do