Ignore:
Timestamp:
Jan 7, 2024, 10:24:51 PM (10 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
  • Added: High DPI aware SetWindowPos function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AI/StdAI/ToolAI.pas

    r447 r522  
    420420            begin
    421421              Inc(BestCount);
    422               if random(BestCount) = 0 then
     422              if Random(BestCount) = 0 then
    423423              begin
    424424                BestScore := TestScore;
     
    11291129        begin
    11301130          Loc_to_ab(MyUnit[uix].Loc, MyUnit[uixTransportLoad[tuix]].Loc, A, B);
    1131           if (abs(A) <= 1) and (abs(B) <= 1) then
     1131          if (Abs(A) <= 1) and (Abs(B) <= 1) then
    11321132          begin
    11331133            Assert((A <> 0) or (B <> 0));
     
    11461146          begin
    11471147            Loc_to_ab(TransportPlan.LoadLoc, MyUnit[uixTransportLoad[tuix]].Loc, A, B);
    1148             if (abs(A) <= 1) and (abs(B) <= 1) then
     1148            if (Abs(A) <= 1) and (Abs(B) <= 1) then
    11491149            begin
    11501150              TransportPlan.uixLoad[TransportPlan.nLoad] := uixTransportLoad[tuix];
Note: See TracChangeset for help on using the changeset viewer.