Changeset 291 for trunk/UGame.pas


Ignore:
Timestamp:
Mar 26, 2019, 1:16:27 PM (6 years ago)
Author:
chronos
Message:
  • Modified: UnitKind list and items converted to general item list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r287 r291  
    303303    NewPower := Random(MaxNeutralUnits + 1);
    304304    if (NewPower > 0) and not Assigned(OneUnit) then begin
    305       OneUnit := Units.AddNew(GameSystem.UnitKinds[0], NewPower);
     305      OneUnit := Units.AddNew(TUnitKind(GameSystem.UnitKinds[0]), NewPower);
    306306    end;
    307307    Player := nil;
     
    344344        StartCell.Player := Player;
    345345        if not Assigned(StartCell.OneUnit) then
    346           StartCell.OneUnit := Self.Units.AddNew(GameSystem.UnitKinds[0], Player.StartUnits);
     346          StartCell.OneUnit := Self.Units.AddNew(TUnitKind(GameSystem.UnitKinds[0]), Player.StartUnits);
    347347        StartCell.OneUnit.Power := Player.StartUnits;
    348         StartCell.OneUnit.Kind := GameSystem.UnitKinds[0];
     348        StartCell.OneUnit.Kind := TUnitKind(GameSystem.UnitKinds[0]);
    349349        StartCell.OneUnit.Player := Player;
    350350      end;
Note: See TracChangeset for help on using the changeset viewer.