From b549a7d266bf78d813c96d61b39934906b5176a1 Mon Sep 17 00:00:00 2001
From: mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>
Date: Wed, 7 May 2008 17:28:05 +0000
Subject: 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
---
 Game/Code/Menu/UMenu.pas | 18 ++----------------
 1 file 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))
-- 
cgit v1.2.3