diff options
Diffstat (limited to 'Game/Code')
-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)) |