Changeset 307 for trunk/UPlayer.pas


Ignore:
Timestamp:
Aug 18, 2021, 11:18:39 AM (3 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UPlayer.pas

    r303 r307  
    973973    end;
    974974    CellFrom.MapCell.OneUnit.Power := CellFrom.MapCell.OneUnit.Power - UnitCount;
     975    CellFrom.MapCell.CheckOwnership;
    975976  end;
    976977
     
    11451146  for I := 0 to PlayerMap.Cells.Count - 1 do
    11461147  with TPlayerCell(PlayerMap.Cells[I]) do begin
    1147     if Assigned(MapCell.OneUnit) and (MapCell.OneUnit.Power = 0) then
    1148       MapCell.Player := nil;
     1148    MapCell.CheckOwnership;
    11491149  end;
    11501150end;
Note: See TracChangeset for help on using the changeset viewer.