diff options
author | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-05-07 17:28:05 +0000 |
---|---|---|
committer | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-05-07 17:28:05 +0000 |
commit | b549a7d266bf78d813c96d61b39934906b5176a1 (patch) | |
tree | 7f8b52d373d5a30827bbe4caf9eb80077b256a68 | |
parent | 31bf7b9f1d51339a1a1a0a093c0e6da2052384a3 (diff) | |
download | usdx-b549a7d266bf78d813c96d61b39934906b5176a1.tar.gz usdx-b549a7d266bf78d813c96d61b39934906b5176a1.tar.xz usdx-b549a7d266bf78d813c96d61b39934906b5176a1.zip |
Bugfix: Options screen doesn't break anymore when cursor up / down is pressed
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1066 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Menu/UMenu.pas | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Game/Code/Menu/UMenu.pas b/Game/Code/Menu/UMenu.pas index 3cdccb0b..9edf1e00 100644 --- a/Game/Code/Menu/UMenu.pas +++ b/Game/Code/Menu/UMenu.pas @@ -898,14 +898,7 @@ begin // usually start a second row when there are more than 4 buttons Int := Interaction; - // change interaction as long as it's needed - repeat - Int := int - ceil(Length(Interactions) / 2); - - //If no Interaction is Selectable Simply Select Next - if (Int = Interaction) then Break; - - Until IsSelectable(Int); + Int := Int - ceil(Length(Interactions) / 2); //Set Interaction if ((Int < 0) or (Int > Length(Interactions) - 1)) @@ -919,14 +912,7 @@ var begin Int := Interaction; - // change interaction as long as it's needed - repeat - Int := int + ceil(Length(Interactions) / 2); - - //If no Interaction is Selectable Simply Select Next - if (Int = Interaction) then Break; - - Until IsSelectable(Int); + Int := Int + ceil(Length(Interactions) / 2); //Set Interaction if ((Int < 0) or (Int > Length(Interactions) - 1)) |