summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 103fc3e)
raw | patch | inline | side by side (parent: 103fc3e)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 12 Apr 2019 13:15:41 +0000 (16:15 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 12 Apr 2019 13:15:41 +0000 (16:15 +0300) |
src/game/g_gui.pas | patch | blob | history |
diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas
index 9b44f6f8a7b8a4e572c1e4b31216598c57b4ec6d..42c2c6b66a08ab53ccfe6ac9a8187763004f78a7 100644 (file)
--- a/src/game/g_gui.pas
+++ b/src/game/g_gui.pas
procedure TGUIFileListBox.OnMessage(var Msg: TMessage);
var
- a: Integer;
+ a, b: Integer;
begin
if not FEnabled then
Exit;
end;
WM_CHAR:
- for a := 0 to High(FItems) do
+ for b := FIndex + 1 to High(FItems) + FIndex do
+ begin
+ a := b mod Length(FItems);
if ( (Length(FItems[a]) > 0) and
(LowerCase(FItems[a][1]) = LowerCase(Chr(wParam))) ) or
( (Length(FItems[a]) > 1) and
FOnChangeEvent(Self);
Break;
end;
+ end;
end;
end;