Ignore:
Timestamp:
Dec 18, 2023, 10:31:54 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Select.pas

    r487 r496  
    986986procedure TListDlg.InitLines;
    987987var
    988   required: array [0 .. nAdv - 1] of Integer;
     988  Required: array [0 .. nAdv - 1] of Integer;
    989989
    990990  procedure TryAddImpLine(Layer, Project: Integer);
     
    10001000  procedure SortTechs;
    10011001  var
    1002     I, J, swap: Integer;
     1002    I, J, Swap: Integer;
    10031003  begin // sort by advancedness
    10041004    for I := 0 to Lines[0] - 2 do
     
    10081008            nAdv + Code[0, J] then
    10091009          begin
    1010             swap := Code[0, I];
     1010            Swap := Code[0, I];
    10111011            Code[0, I] := Code[0, J];
    1012             Code[0, J] := swap;
     1012            Code[0, J] := Swap;
    10131013          end;
    10141014  end;
     
    10161016  procedure SortCities;
    10171017  var
    1018     I, J, swap: Integer;
     1018    I, J, Swap: Integer;
    10191019  begin
    10201020    for I := 0 to Lines[0] - 2 do
     
    10231023        then
    10241024        begin
    1025           swap := Code[0, I];
     1025          Swap := Code[0, I];
    10261026          Code[0, I] := Code[0, J];
    1027           Code[0, J] := swap;
     1027          Code[0, J] := Swap;
    10281028        end;
    10291029  end;
     
    10391039  procedure SortModels;
    10401040  var
    1041     I, J, swap: Integer;
     1041    I, J, Swap: Integer;
    10421042  begin // sort by code[2]
    10431043    for I := 0 to Lines[0] - 2 do
     
    10451045        if Code[2, I] > Code[2, J] then
    10461046        begin
    1047           swap := Code[0, I];
     1047          Swap := Code[0, I];
    10481048          Code[0, I] := Code[0, J];
    1049           Code[0, J] := swap;
    1050           swap := Code[1, I];
     1049          Code[0, J] := Swap;
     1050          Swap := Code[1, I];
    10511051          Code[1, I] := Code[1, J];
    1052           Code[1, J] := swap;
    1053           swap := Code[2, I];
     1052          Code[1, J] := Swap;
     1053          Swap := Code[2, I];
    10541054          Code[2, I] := Code[2, J];
    1055           Code[2, J] := swap;
     1055          Code[2, J] := Swap;
    10561056        end;
    10571057  end;
     
    10591059  procedure MarkPreqs(I: Integer);
    10601060  begin
    1061     required[I] := 1;
     1061    Required[I] := 1;
    10621062    if MyRO.Tech[I] < tsSeen then
    10631063    begin
     
    11471147        if MyData.FarTech <> adNone then
    11481148        begin
    1149           FillChar(required, SizeOf(required), 0);
     1149          FillChar(Required, SizeOf(Required), 0);
    11501150          MarkPreqs(MyData.FarTech);
    11511151        end;
     
    11531153          if ((I in FutureTech) or (MyRO.Tech[I] < tsApplicable)) and
    11541154            (Server(sSetResearch - sExecute, Me, I, nil^) >= rExecuted) and
    1155             ((MyData.FarTech = adNone) or (required[I] > 0)) then
     1155            ((MyData.FarTech = adNone) or (Required[I] > 0)) then
    11561156          begin
    11571157            Code[0, Lines[0]] := I;
Note: See TracChangeset for help on using the changeset viewer.