aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-17 15:23:11 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-17 15:23:11 +0000
commitfd313cf8ba1e77bbfa76ffebf579dc7957a287c3 (patch)
tree30baadcd88761861da1f76425e51c31f44ad8a33 /Game/Code
parentb284fee1c7e7199a378b6bcba9f6ca4da9287269 (diff)
downloadusdx-fd313cf8ba1e77bbfa76ffebf579dc7957a287c3.tar.gz
usdx-fd313cf8ba1e77bbfa76ffebf579dc7957a287c3.tar.xz
usdx-fd313cf8ba1e77bbfa76ffebf579dc7957a287c3.zip
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
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Menu/UMenu.pas18
1 files 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