Changeset 322 for trunk/Player.pas


Ignore:
Timestamp:
Jun 25, 2024, 1:15:02 AM (4 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Player.pas

    r318 r322  
    12771277  with TGame(Game).Map do
    12781278  for I := 0 to Cells.Count - 1 do
    1279   with TCell(Cells[I]) do begin
     1279  with Cells[I] do begin
    12801280    if (Player = Self) and ((TGame(Game).GrowCells = gcPlayerAll) or
    12811281    ((TGame(Game).GrowCells = gcPlayerCities) and (Assigned(Building) and (Building.Kind.SpecialType = stCity)))) then begin
     
    12831283        NewUnit := TGame(Game).Units.AddNew(TUnitKind(TGame(Game).GameSystem.UnitKinds.First), 0);
    12841284        NewUnit.Player := Self;
    1285         NewUnit.MapCell := TCell(Cells[I]);
     1285        NewUnit.MapCell := Cells[I];
    12861286        Units.Add(NewUnit);
    12871287      end;
Note: See TracChangeset for help on using the changeset viewer.