Changeset 550 for trunk/LocalPlayer


Ignore:
Timestamp:
Apr 22, 2024, 10:17:01 PM (4 weeks ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r549 r550  
    11881188    begin
    11891189      I := 5;
    1190       while (I >= 0) and not((X >= xZoomMap + 14 + 72 * (I mod 3)) and
     1190      while (I >= 0) and not ((X >= xZoomMap + 14 + 72 * (I mod 3)) and
    11911191        (X < xZoomMap + 14 + 56 + 72 * (I mod 3)) and
    11921192        (Y >= yZoomMap + 14 + 56 * (I div 3)) and
     
    12991299    begin
    13001300      I := 5;
    1301       while (I >= 0) and not((X >= xZoomMap + 64 * (I mod 3)) and
     1301      while (I >= 0) and not ((X >= xZoomMap + 64 * (I mod 3)) and
    13021302        (X < xZoomMap + 64 + 64 * (I mod 3)) and
    13031303        (Y >= yZoomMap + 20 + 48 * (I div 3)) and
  • trunk/LocalPlayer/Diagram.pas

    r536 r550  
    111111      Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[3] + 32,
    112112        Top + 100 + 46 + yComp[3], 16, 27, 18, 82);
    113     if (nComp <> 6) and (nComp <> 2) and not((nComp = 0) and (nPow < 1)) then
     113    if (nComp <> 6) and (nComp <> 2) and not ((nComp = 0) and (nPow < 1)) then
    114114      Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[nComp],
    115115        Top + 100 + 7 + yComp[nComp], 16, 27, 18, 82);
    116     if (nComp <> 6) and (nComp <> 3) and not((nComp = 0) and (nPow < 2)) then
     116    if (nComp <> 6) and (nComp <> 3) and not ((nComp = 0) and (nPow < 2)) then
    117117      Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[nComp],
    118118        Top + 100 + 46 + yComp[nComp], 16, 27, 18, 82);
  • trunk/LocalPlayer/Draft.pas

    r549 r550  
    379379      ((Feature[I].Preq = preSun) and (MyRO.Wonder[woSun].EffectiveOwner = Me)
    380380      or (Feature[I].Preq >= 0) and (MyRO.Tech[Feature[I].Preq] >= tsApplicable)
    381       ) and not((Feature[I].Preq = adSteamEngine) and
     381      ) and not ((Feature[I].Preq = adSteamEngine) and
    382382      (MyRO.Tech[adNuclearPower] >= tsApplicable)) then
    383383    begin
  • trunk/LocalPlayer/Help.pas

    r549 r550  
    567567          else if HelpLineInfo.CrossLink then
    568568            Sprite(OffScreen, HGrSystem, 12, I * 24 + 5, 14, 14, 80, 1)
    569           else if not((Kind = hkMisc) and (No = Integer(miscMain))) then
     569          else if not ((Kind = hkMisc) and (No = Integer(miscMain))) then
    570570            Sprite(OffScreen, HGrSystem, 10, I * 24 + 6, 14, 14, 65, 1);
    571571          x0[I] := 24;
  • trunk/LocalPlayer/IsoEngine.pas

    r549 r550  
    988988  begin
    989989    Conn := Connection4(Loc, fRiver, fRiver) or
    990       Connection4(Loc, fTerrain, fShore) or Connection4(Loc, fTerrain,
    991       fUNKNOWN);
     990      Connection4(Loc, fTerrain, fShore) or Connection4(Loc, fTerrain, fUNKNOWN);
    992991    TerrainSprite(X, Y, spRiver + Conn mod 8 + (Conn div 8) * TerrainIconCols);
    993992  end;
     
    12601259        UnitInfo.Health := DefHealth;
    12611260      if (UnitInfo.Owner <> CityOwner) and
    1262         not((CityOwner = Me) and (MyRO.Treaty[UnitInfo.Owner] = trAlliance))
     1261        not ((CityOwner = Me) and (MyRO.Treaty[UnitInfo.Owner] = trAlliance))
    12631262      then
    12641263{$IFNDEF SCR} if (UnFocus >= 0) and (Loc = MyUn[UnFocus].Loc) then { active unit }
  • trunk/LocalPlayer/Select.pas

    r549 r550  
    181181    LoweredTextOut(Canvas, -1, MainTexture,
    182182      (Width - BiColorTextWidth(Canvas, S)) div 2, 31, S);
    183   if not MultiPage and (Kind in [kProject, kAdvance, kFarAdvance]) and not Phrases2FallenBackToEnglish
    184   then
    185   begin
     183  if not MultiPage and (Kind in [kProject, kAdvance, kFarAdvance]) and
     184    not Phrases2FallenBackToEnglish then begin
    186185    S := Phrases2.Lookup('SHIFTCLICK');
    187186    LoweredTextOut(Canvas, -2, MainTexture,
     
    13961395          Code[1, Lines[0]] := MyRO.nEnemyModel - 1;
    13971396          while (Code[1, Lines[0]] >= 0) and
    1398             not((MyRO.EnemyModel[Code[1, Lines[0]]].Owner = pView) and
     1397            not ((MyRO.EnemyModel[Code[1, Lines[0]]].Owner = pView) and
    13991398            (MyRO.EnemyModel[Code[1, Lines[0]]].mix = I)) do
    14001399            Dec(Code[1, Lines[0]]);
     
    16781677begin
    16791678  ForceClose := (ListKind <> Kind) and
    1680     not((Kind = kCities) and (ListKind = kCityEvents)) and
    1681     not((Kind = kCityEvents) and (ListKind = kCities)) and
    1682     not((Kind = kModels) and (ListKind = kEModels)) and
    1683     not((Kind = kEModels) and (ListKind = kModels));
     1679    not ((Kind = kCities) and (ListKind = kCityEvents)) and
     1680    not ((Kind = kCityEvents) and (ListKind = kCities)) and
     1681    not ((Kind = kModels) and (ListKind = kEModels)) and
     1682    not ((Kind = kEModels) and (ListKind = kModels));
    16841683
    16851684  Kind := ListKind;
  • trunk/LocalPlayer/Term.pas

    r549 r550  
    12791279  Loc0: Integer;
    12801280begin
    1281   Assert(not((uix >= 0) and Supervising));
     1281  Assert(not ((uix >= 0) and Supervising));
    12821282  if uix <> UnFocus then
    12831283  begin
     
    30823082    cShowUnitChanged, cShowCityChanged, cShowAfterMove, cShowAfterAttack:
    30833083      if (Idle and (NewPlayer = Me) or not Idle and not skipped) and
    3084         not((GameMode = cMovie) and (MovieSpeed = 4)) then
     3084        not ((GameMode = cMovie) and (MovieSpeed = 4)) then
    30853085      begin
    30863086        Assert(NewPlayer = Me);
     
    31463146      if (Idle and (NewPlayer = Me) or not Idle and not skipped and
    31473147        (TShowMove(Data).emix <> $FFFF)) and
    3148         not((GameMode = cMovie) and (MovieSpeed = 4)) then
     3148        not ((GameMode = cMovie) and (MovieSpeed = 4)) then
    31493149      begin
    31503150        Assert(NewPlayer = Me);
     
    33273327      if (Idle and (NewPlayer = Me) or not Idle and not skipped and
    33283328        (TShowMove(Data).emix <> $FFFF)) and
    3329         not((GameMode = cMovie) and (MovieSpeed = 4)) then
     3329        not ((GameMode = cMovie) and (MovieSpeed = 4)) then
    33303330      begin
    33313331        Assert(NewPlayer = Me);
     
    60236023  begin // attack -- search enemy unit
    60246024    if (MyModel[MyUn[UnFocus].mix].Attack = 0) and
    6025       not((MyModel[MyUn[UnFocus].mix].Cap[mcBombs] > 0) and
     6025      not ((MyModel[MyUn[UnFocus].mix].Cap[mcBombs] > 0) and
    60266026      (MyUn[UnFocus].Flags and unBombsLoaded <> 0)) then
    60276027    begin
     
    76197619      ((MyRO.Wonder[woGardens].EffectiveOwner = Me) or
    76207620      (Tile and fTerrain <> fArctic) and (Tile and fTerrain <> fDesert)) and
    7621       not((mox.Domain = dAir) and (Tile and fCity = 0) and
     7621      not ((mox.Domain = dAir) and (Tile and fCity = 0) and
    76227622      (Tile and fTerImp <> tiBase));
    7623     mStay.Visible := not((mox.Domain = dAir) and (Tile and fCity = 0) and
     7623    mStay.Visible := not ((mox.Domain = dAir) and (Tile and fCity = 0) and
    76247624      (Tile and fTerImp <> tiBase));
    76257625    mCity.Visible := Extended and (mox.Kind = mkSettler) or
Note: See TracChangeset for help on using the changeset viewer.