Changeset 244 for trunk/UMap.pas


Ignore:
Timestamp:
Sep 22, 2018, 11:25:47 AM (6 years ago)
Author:
chronos
Message:
  • Fixed: Lost controls handler assignment in New form.
  • Fixed: Cyclic map flag was not properly loaded from save map file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMap.pas

    r242 r244  
    567567  Shape := Source.Shape;
    568568  Image.Picture.Bitmap.Assign(Source.Image.Picture.Bitmap);
     569  Cyclic := Source.Cyclic;
    569570
    570571  // TODO: How to copy cells
     
    598599  DefaultCellSize.Y := ReadInteger(Node, 'DefaultCellSizeY', 1);
    599600  MaxPower := ReadInteger(Node, 'MaxPower', DefaultMaxPower);
     601  Cyclic := ReadBoolean(Node, 'Cyclic', False);
    600602  Shape := TMapShape(ReadInteger(Node, 'Shape', Integer(msRectangle)));
    601603  Node2 := Node.FindNode('Cells');
     
    615617  WriteInteger(Node, 'DefaultCellSizeY', DefaultCellSize.Y);
    616618  WriteInteger(Node, 'MaxPower', MaxPower);
     619  WriteBoolean(Node, 'Cyclic', Cyclic);
    617620  WriteInteger(Node, 'Shape', Integer(Shape));
    618621  WriteInteger(Node, 'SizeX', Size.X);
Note: See TracChangeset for help on using the changeset viewer.