Changeset 549 for trunk/AI/StdAI/AI.pas
- Timestamp:
- Apr 21, 2024, 8:55:53 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AI/StdAI/AI.pas
r548 r549 1788 1788 DistrictNeed, DistrictNeed0: array[0..maxCOD - 1] of Integer; 1789 1789 ModelOrder: array[0..nMmax - 1] of Integer; 1790 complete, Fortified: Boolean;1790 Complete, Fortified: Boolean; 1791 1791 1792 1792 function IsBombarded(cix: Integer): Boolean; … … 1953 1953 end; 1954 1954 1955 complete := Loop >= FirstSurplusLoop[Cat];1955 Complete := Loop >= FirstSurplusLoop[Cat]; 1956 1956 for I := nModelOrder - 1 downto 0 do 1957 1957 begin … … 1967 1967 Dec(DistrictNeed[District[Loc]]); 1968 1968 Destination[uix] := Loc; 1969 complete := False;1969 Complete := False; 1970 1970 end; 1971 1971 … … 1980 1980 FindDestination(uix); 1981 1981 if Destination[uix] >= 0 then 1982 complete := False;1982 Complete := False; 1983 1983 end; 1984 1984 end; 1985 1985 Inc(Loop) 1986 until complete;1986 until Complete; 1987 1987 end; 1988 1988 … … 2005 2005 DistrictNeed0 := DistrictNeed; 2006 2006 2007 complete := True;2007 Complete := True; 2008 2008 for uix := 0 to RO.nUn - 1 do 2009 2009 with MyUnit[uix] do … … 2015 2015 begin 2016 2016 if DistrictNeed0[District[Loc]] > 0 then 2017 complete := False;2017 Complete := False; 2018 2018 end 2019 2019 else … … 2021 2021 FindDestination(uix); 2022 2022 // if (Destination[uix]<0) and (RO.Territory[Loc]=me) then 2023 // complete:=false; // causes hangup when unit can't move due to zoc2023 // Complete:=false; // causes hangup when unit can't move due to zoc 2024 2024 end; 2025 until complete;2025 until Complete; 2026 2026 2027 2027 for uix := 0 to RO.nUn - 1 do … … 2044 2044 case ModelCat[mix] of 2045 2045 mctGroundDefender, mctGroundAttacker: 2046 Dec(UnitLack[District[Loc], ModelCat[mix]]) 2046 Dec(UnitLack[District[Loc], ModelCat[mix]]); 2047 2047 end; 2048 2048 end; … … 2351 2351 F := Formation[AdjacentLoc]; 2352 2352 if (F >= 0) and (F < maxCOD) and (OceanPresence[F] and 2353 not (1 shl Me) <> 0) then 2354 Result := True; 2353 not (1 shl Me) <> 0) then begin 2354 Result := True; 2355 Exit; 2356 end; 2355 2357 end; 2356 2358 end;
Note:
See TracChangeset
for help on using the changeset viewer.