Changeset 550 for trunk/Database.pas


Ignore:
Timestamp:
Apr 22, 2024, 10:17:01 PM (7 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Database.pas

    r549 r550  
    18951895  if NewTile and fRR <> 0 then
    18961896    NewTile := NewTile and not fRoad;
    1897   if not((NewTile and fTerrain) in TerrType_Canalable) then
     1897  if not ((NewTile and fTerrain) in TerrType_Canalable) then
    18981898    NewTile := NewTile and not fCanal;
    18991899  if Terrain[NewTile and fTerrain].IrrEff = 0 then
     
    19611961    begin // search exploiting player and city
    19621962      SearchCity(UsedByCity[Loc], P, cix);
    1963       if not((P = p0) or (ObserveLevel[UsedByCity[Loc]] shr (2 * p0) and
     1963      if not ((P = p0) or (ObserveLevel[UsedByCity[Loc]] shr (2 * p0) and
    19641964        3 = lObserveSuper)) then
    19651965        cix := -1
     
    27672767  Dec(TerritoryCount[RealMap[Loc] shr 27]);
    27682768  Inc(TerritoryCount[P]);
    2769   RealMap[Loc] := RealMap[Loc] and not($F shl 27) or Cardinal(P) shl 27;
     2769  RealMap[Loc] := RealMap[Loc] and not ($F shl 27) or Cardinal(P) shl 27;
    27702770  if P = $F then
    27712771    P := -1;
     
    29212921            if NewOwner <> OldOwner then
    29222922              if AtPeace[NewOwner, OldOwner] and
    2923                 not((OldOwner = PlayerLosingCity) and
     2923                not ((OldOwner = PlayerLosingCity) and
    29242924                (StolenDist[Loc] > CountryRadius)) then
    29252925                NewOwner := OldOwner // peace fixes borders
Note: See TracChangeset for help on using the changeset viewer.