From fd313cf8ba1e77bbfa76ffebf579dc7957a287c3 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Sun, 17 Apr 2011 15:23:11 +0000 Subject: fix: do not set interaction on values which are not checked git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2820 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 81c96516..1ed91087 100644 --- a/Game/Code/Menu/UMenu.pas +++ b/Game/Code/Menu/UMenu.pas @@ -846,13 +846,6 @@ begin // change interaction as long as it's needed repeat Int := (Int + 1) Mod Length(Interactions); - - //If no Interaction is Selectable Simply Select Next - if (Int = Interaction) then - begin - Int := (Int + 1) Mod Length(Interactions); - Break; - end; Until IsSelectable(Int); //Set Interaction @@ -869,15 +862,8 @@ begin // change interaction as long as it's needed repeat Int := Int - 1; - if Int = -1 then Int := High(Interactions); - - //If no Interaction is Selectable Simply Select Next - if (Int = Interaction) then - begin - Int := SelInteraction - 1; - if Int = -1 then Int := High(Interactions); - Break; - end; + if Int = -1 then + Int := High(Interactions); Until IsSelectable(Int); //Set Interaction -- cgit v1.2.3