Changeset 242 for trunk/UMap.pas


Ignore:
Timestamp:
Sep 21, 2018, 1:34:58 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Connect map cells using ConnectTo method instead of Neighbors.Add method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMap.pas

    r238 r242  
    267267begin
    268268  Result := TCellLink.Create;
    269   Cell1.Neighbors.Add(Cell2);
     269  Cell1.ConnectTo(Cell2);
    270270  Cell1.Links.Add(Result);
    271   Cell2.Neighbors.Add(Cell1);
    272271  Cell2.Links.Add(Result);
    273272  SetLength(Result.Points, 2);
Note: See TracChangeset for help on using the changeset viewer.