- Disabled use of normals (weren't really in use anyway)

- Added updating of the last shortcut in TScreenBuffer
This commit is contained in:
2009-08-06 15:04:09 +02:00
parent 28969d94f7
commit 2b040fc5e3
2 changed files with 20 additions and 8 deletions

View File

@@ -1269,7 +1269,9 @@ begin
if (FShortCuts[0] = nil) or (CompareWorldItems(AItem, FShortCuts[0]) < 0) then
begin
//TODO : update last element if necessary
if FShortCuts[0] = nil then
FShortCuts[-1] := Result; //Update last item
Result^.Next := FShortCuts[0];
FShortCuts[0] := Result;
end else
@@ -1289,7 +1291,9 @@ begin
begin
current := current^.Next;
end;
//TODO : update last element if necessary
if FShortCuts[-1] = current^.Next then
FShortCuts[-1] := Result; //Update last item
Result^.Next := current^.Next;
current^.Next := Result;