Changeset 291 for trunk/UGame.pas
- Timestamp:
- Mar 26, 2019, 1:16:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r287 r291 303 303 NewPower := Random(MaxNeutralUnits + 1); 304 304 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); 306 306 end; 307 307 Player := nil; … … 344 344 StartCell.Player := Player; 345 345 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); 347 347 StartCell.OneUnit.Power := Player.StartUnits; 348 StartCell.OneUnit.Kind := GameSystem.UnitKinds[0];348 StartCell.OneUnit.Kind := TUnitKind(GameSystem.UnitKinds[0]); 349 349 StartCell.OneUnit.Player := Player; 350 350 end;
Note:
See TracChangeset
for help on using the changeset viewer.