Changeset 316 for trunk/UGame.pas
- Timestamp:
- Jun 19, 2024, 11:53:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r315 r316 1 1 unit UGame; 2 3 {$mode delphi}{$H+}4 2 5 3 interface … … 7 5 uses 8 6 Classes, SysUtils, ExtCtrls, Graphics, XMLConf, XMLRead, XMLWrite, Forms, 9 DOM, Math, LazFileUtils, XML, Dialogs, LCLType, LCLIntf, fgl, UBuilding,10 U Geometry, UPlayer, UMap, UMapType, UUnit, UGameSystem;7 DOM, Math, LazFileUtils, XML, Dialogs, LCLType, LCLIntf, UBuilding, UGeometry, 8 UPlayer, UMap, UMapType, UUnit, UGameSystem; 11 9 12 10 const … … 387 385 List := TCells.Create; 388 386 try 389 List. FreeObjects := False;387 List.OwnsObjects := False; 390 388 Map.Cells.GetCellsWithWeight(List, Round(LongestDistance * 0.6), Round(LongestDistance * 0.8)); 391 389 … … 415 413 Player.StartCell.Mark := True; 416 414 List := TCells.Create; 417 List. FreeObjects := False;415 List.OwnsObjects := False; 418 416 List.Add(Player.StartCell); 419 417 PropagatePlayerDistance(List); … … 430 428 begin 431 429 NeighborList := TCells.Create; 432 NeighborList. FreeObjects := False;430 NeighborList.OwnsObjects := False; 433 431 434 432 for Cell in List do begin … … 880 878 FreeAndNil(Units); 881 879 FreeAndNil(GameSystem); 882 inherited Destroy;880 inherited; 883 881 end; 884 882
Note:
See TracChangeset
for help on using the changeset viewer.