Ignore:
Timestamp:
Apr 25, 2024, 6:31:34 PM (3 weeks ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Select.pas

    r550 r558  
    139139procedure TListDlg.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
    140140begin
    141   CanClose := Closable or not(Kind in MustChooseKind);
     141  CanClose := Closable or not (Kind in MustChooseKind);
    142142end;
    143143
     
    918918  then
    919919    Include(Shift, ssShift); // don't close list window
    920   if (ssLeft in Shift) and not(ssShift in Shift) then
     920  if (ssLeft in Shift) and not (ssShift in Shift) then
    921921  begin
    922922    if Selected <> -2 then
     
    10891089            TryAddImpLine(0, I + cpImp);
    10901090        for I := nWonder to nImp - 1 do
    1091           if not(Imp[I].Kind in [ikCommon, ikTrGoods]) and
     1091          if not (Imp[I].Kind in [ikCommon, ikTrGoods]) and
    10921092            ((MyRO.NatBuilt[I] = 0) or (Imp[I].Kind = ikNatLocal)) then
    10931093            TryAddImpLine(0, I + cpImp);
     
    11821182        Inc(Lines[0]);
    11831183        for I := 0 to nAdv - 1 do
    1184           if not(I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and
     1184          if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and
    11851185            ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and
    11861186            ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) then
     
    11941194      begin
    11951195        for I := 0 to nAdv - 1 do
    1196           if not(I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and
     1196          if not (I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and
    11971197            (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] < tsSeen) then
    11981198          begin
     
    12101210      begin
    12111211        for I := 0 to nAdv - 1 do
    1212           if not(I in FutureTech) and (MyRO.Tech[I] < tsSeen) and
     1212          if not (I in FutureTech) and (MyRO.Tech[I] < tsSeen) and
    12131213            (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] >= tsApplicable) then
    12141214          begin
     
    17431743      ShowFocus := False;
    17441744      for I := 0 to nAdv - 1 do
    1745         if not(I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and
     1745        if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and
    17461746          ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and
    17471747          ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) and
     
    17531753  ToggleBtn.Visible := (Kind = kCities) and not Supervising or (Kind = kAdvance)
    17541754    and ShowFocus or (Kind = kModels) or (Kind = kEModels);
    1755   CloseBtn.Visible := not(Kind in MustChooseKind);
     1755  CloseBtn.Visible := not (Kind in MustChooseKind);
    17561756
    17571757  inherited ShowNewContent(NewMode, ForceClose);
Note: See TracChangeset for help on using the changeset viewer.