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

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r552 r558  
    19911991              for I := 0 to nShipPart - 1 do
    19921992                if MyRO.Ship[p1].Parts[I] < ShipNeed[I] then
    1993                   Winners := Winners and not(1 shl p1);
     1993                  Winners := Winners and not (1 shl p1);
    19941994            end;
    19951995          Assert(Winners <> 0);
     
    31043104          else if CurrentMoveInfo.IsAlly then
    31053105            CurrentMoveInfo.DoShow :=
    3106               not(mAlNoMoves.Checked or mAlEffectiveMovesOnly.Checked)
     3106              not (mAlNoMoves.Checked or mAlEffectiveMovesOnly.Checked)
    31073107          else
    31083108            CurrentMoveInfo.DoShow :=
    3109               not(mEnNoMoves.Checked or mEnAttacks.Checked);
     3109              not (mEnNoMoves.Checked or mEnAttacks.Checked);
    31103110        end;
    31113111        // else keep DoShow from cShowMove/cShowAttack
     
    32113211            else if CurrentMoveInfo.IsAlly then
    32123212              CurrentMoveInfo.DoShow := not mAlNoMoves.Checked and
    3213                 not(mAlEffectiveMovesOnly.Checked and
     3213                not (mAlEffectiveMovesOnly.Checked and
    32143214                (Command <> cShowCapturing))
    32153215            else
    32163216              CurrentMoveInfo.DoShow := not mEnNoMoves.Checked and
    3217                 not(mEnAttacks.Checked and (Command <> cShowCapturing));
     3217                not (mEnAttacks.Checked and (Command <> cShowCapturing));
    32183218            if CurrentMoveInfo.DoShow then
    32193219            begin
     
    38043804    else
    38053805      Destination := Status shr 16;
    3806     Status := Status and not(usStay or usRecover) or usWaiting;
     3806    Status := Status and not (usStay or usRecover) or usWaiting;
    38073807    MoveToLoc(Destination, True);
    38083808  end;
     
    38373837    else
    38383838    begin
    3839       Status := Status and not(usStay or usRecover or usEnhance);
     3839      Status := Status and not (usStay or usRecover or usEnhance);
    38403840      MoveToLoc(maNextCity, True);
    38413841    end;
     
    57295729  if (MouseLoc < 0) or (MouseLoc >= G.lx * G.ly) then
    57305730    Exit;
    5731   if (Button = TMouseButton.mbLeft) and not(ssShift in Shift) then
     5731  if (Button = TMouseButton.mbLeft) and not (ssShift in Shift) then
    57325732  begin
    57335733    DoCenter := True;
     
    57535753        if MyMap[MouseLoc] and (fDeadLands or fModern) = BrushType and
    57545754          (fDeadLands or fModern) then
    5755           EditTileData.NewTile := MyMap[MouseLoc] and not(fDeadLands or fModern)
     5755          EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern)
    57565756        else
    5757           EditTileData.NewTile := MyMap[MouseLoc] and not(fDeadLands or fModern)
     5757          EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern)
    57585758            or BrushType
    57595759      else if BrushType and fTerImp <> 0 then
     
    57665766          (fPrefStartPos or fStartPos) then
    57675767          EditTileData.NewTile := MyMap[MouseLoc] and
    5768             not(fPrefStartPos or fStartPos)
     5768            not (fPrefStartPos or fStartPos)
    57695769        else
    57705770          EditTileData.NewTile := MyMap[MouseLoc] and
    5771             not(fPrefStartPos or fStartPos) or BrushType
     5771            not (fPrefStartPos or fStartPos) or BrushType
    57725772      else
    57735773        EditTileData.NewTile := MyMap[MouseLoc] xor BrushType;
     
    58395839        PanelPaint;
    58405840      end // own unit
    5841       else if (MyMap[MouseLoc] and fSpiedOut <> 0) and not(ssCtrl in Shift) then
     5841      else if (MyMap[MouseLoc] and fSpiedOut <> 0) and not (ssCtrl in Shift) then
    58425842      begin
    58435843        DoCenter := False;
     
    58575857  end
    58585858  else if (ClientMode <> cEditMap) and (Button = TMouseButton.mbRight) and
    5859     not(ssShift in Shift) then
     5859    not (ssShift in Shift) then
    58605860  begin
    58615861    if Supervising then
     
    59335933          DestinationMarkON := False;
    59345934          PaintDestination;
    5935           Status := Status and not(usStay or usRecover or usEnhance) or
     5935          Status := Status and not (usStay or usRecover or usEnhance) or
    59365936            usWaiting;
    59375937          MoveToLoc(MouseLoc, False); { goto }
     
    62446244              Assert(UnFocus >= 0);
    62456245              MyUn[UnFocus].Status := MyUn[UnFocus].Status and
    6246                 not(usStay or usRecover);
     6246                not (usStay or usRecover);
    62476247              for uix := 0 to MyRO.nUn - 1 do
    62486248                if MyUn[uix].Master = UnFocus then
     
    74007400  with TUn(MyUn[UnFocus]) do begin
    74017401    if (Sender = mUtilize) and
    7402       not(Server(sRemoveUnit - sExecute, Me, UnFocus, nil^) = eUtilized) then
     7402      not (Server(sRemoveUnit - sExecute, Me, UnFocus, nil^) = eUtilized) then
    74037403    begin
    74047404      SimpleMessage(Phrases2.Lookup('SHIP_UTILIZE'));
     
    79907990  r0 := CreateRectRgn(Left, Top, Rigth, Bottom);
    79917991  for I := 0 to ControlCount - 1 do
    7992     if not(Controls[I] is TArea) and Controls[I].Visible then
     7992    if not (Controls[I] is TArea) and Controls[I].Visible then
    79937993    begin
    79947994      with Controls[I].BoundsRect do
     
    80458045      CityRepMask := CityRepMask or (1 shl (Tag shr 8))
    80468046    else
    8047       CityRepMask := CityRepMask and not(1 shl (Tag shr 8));
     8047      CityRepMask := CityRepMask and not (1 shl (Tag shr 8));
    80488048  end;
    80498049end;
Note: See TracChangeset for help on using the changeset viewer.