From 5d8cb78bc5b8187da6e80954124f076c408b3c34 Mon Sep 17 00:00:00 2001 From: jaybinks Date: Tue, 4 Mar 2008 07:08:11 +0000 Subject: Patchs from AlexanderS & f1fth_freed0m also some minor bug fixes from myself. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@904 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Menu/UMenu.pas | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Game/Code/Menu') diff --git a/Game/Code/Menu/UMenu.pas b/Game/Code/Menu/UMenu.pas index 8b7bfff3..69ecda44 100644 --- a/Game/Code/Menu/UMenu.pas +++ b/Game/Code/Menu/UMenu.pas @@ -894,11 +894,8 @@ begin 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; + if (Int = Interaction) then Break; + Until IsSelectable(Int); //Set Interaction @@ -918,12 +915,7 @@ begin 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 = Interaction) then Break; Until IsSelectable(Int); //Set Interaction -- cgit v1.2.3