Changeset 307 for trunk/UMap.pas
- Timestamp:
- Aug 18, 2021, 11:18:39 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMap.pas
r299 r307 63 63 function GetColor: TColor; 64 64 function ToString: ansistring; override; 65 procedure CheckOwnership; 65 66 constructor Create; 66 67 destructor Destroy; override; … … 1119 1120 end; 1120 1121 1122 procedure TCell.CheckOwnership; 1123 begin 1124 if TGame(Map.Game).GameSystem.EmptyCellsNeutral then 1125 if Assigned(Player) and (Assigned(OneUnit) and (OneUnit.Power = 0)) or 1126 not Assigned(OneUnit) then 1127 Player := nil; 1128 end; 1129 1121 1130 constructor TCell.Create; 1122 1131 begin
Note:
See TracChangeset
for help on using the changeset viewer.