Changeset 398 for trunk/Map.pas
- Timestamp:
- Jan 6, 2025, 10:27:05 AM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Map.pas
r376 r398 1058 1058 Cell: TCell; 1059 1059 begin 1060 Player := TGame(Map.Game).Players.FindById(PlayerId); 1061 OneUnit := TGame(Map.Game).Units.FindById(OneUnitId); 1060 if PlayerId <> 0 then begin 1061 Player := TGame(Map.Game).Players.FindById(PlayerId); 1062 if not Assigned(Player) then 1063 raise Exception.Create('Referenced player id ' + IntToStr(PlayerId) + ' not found.'); 1064 end else Player := nil; 1065 1066 if OneUnitId <> 0 then begin 1067 OneUnit := TGame(Map.Game).Units.FindById(OneUnitId); 1068 if not Assigned(OneUnit) then 1069 raise Exception.Create('Referenced unit id ' + IntToStr(OneUnitId) + ' not found.'); 1070 end else OneUnit := nil; 1062 1071 1063 1072 Neighbors.Count := Length(NeighborsId);
Note:
See TracChangeset
for help on using the changeset viewer.