Changeset 353
- Timestamp:
- Dec 28, 2024, 10:35:15 PM (21 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Units.pas
r346 r353 41 41 NewId: Integer; 42 42 Game: TObject; //TGame; 43 procedure RecalculateItemsId; 43 44 procedure FixRefId; 44 45 function FindById(Id: Integer): TUnit; … … 59 60 { TUnits } 60 61 62 procedure TUnits.RecalculateItemsId; 63 var 64 I: Integer; 65 begin 66 for I := 0 to Count - 1 do 67 Items[I].Id := I + 1; 68 NewId := Count + 1; 69 end; 70 61 71 procedure TUnits.FixRefId; 62 72 var … … 104 114 NewNode2: TDOMNode; 105 115 begin 116 RecalculateItemsId; 106 117 for I := 0 to Count - 1 do 107 118 with Items[I] do begin
Note:
See TracChangeset
for help on using the changeset viewer.