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/UnitProcessing.pas

    r550 r558  
    596596    MultiDamage := 2;
    597597    if (ABaseDamage = HealthAtt) and (PModel.Cap[mcFanatic] > 0) and
    598       not(RW[pAtt].Government in [gRepublic, gDemocracy, gFuture]) then
     598      not (RW[pAtt].Government in [gRepublic, gDemocracy, gFuture]) then
    599599      MultiDamage := MultiDamage * 2; // fanatic attacker died
    600600    EndHealthDef := RW[Defender].Un[Duix].Health - MultiDamage *
     
    608608    begin
    609609      if (DModel.Cap[mcFanatic] > 0) and
    610         not(RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then
     610        not (RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then
    611611        MultiDamage := MultiDamage * 2; // fanatic defender died
    612612      if PModel.Cap[mcFirst] > 0 then
     
    13591359      if Result = eCity then
    13601360      begin
    1361         ObserveLevel[Loc0] := ObserveLevel[Loc0] and not(3 shl (2 * P));
     1361        ObserveLevel[Loc0] := ObserveLevel[Loc0] and not (3 shl (2 * P));
    13621362        Discover21(Loc0, P, lObserveUnhidden, True, True);
    13631363        // CheckContact;
     
    13831383            Health := Health - HostileDamage(P, mix, Loc, ToWork[Loc, Job]);
    13841384          Dec(Movement, ToWork[Loc, Job]);
    1385           if not(Job in [jCity, jPillage, jPoll]) then
     1385          if not (Job in [jCity, jPillage, jPoll]) then
    13861386            Inc(Worked[P], ToWork[Loc, Job]);
    13871387          if Job = jCity then
     
    14001400            end;
    14011401{$IFOPT O-} if Mode < moPlaying then
    1402               InvalidTreatyMap := not(1 shl P); {$ENDIF}
     1402              InvalidTreatyMap := not (1 shl P); {$ENDIF}
    14031403            // territory should not be considered for the rest of the command
    14041404            // execution, because during loading a game it's incorrect before
     
    14171417        begin
    14181418          Dec(ToWork[Loc, Job], Movement);
    1419           if not(Job in [jCity, jPillage, jPoll]) then
     1419          if not (Job in [jCity, jPillage, jPoll]) then
    14201420            Inc(Worked[P], Movement);
    14211421          Health := Health - HostileDamage(P, mix, Loc, Movement);
Note: See TracChangeset for help on using the changeset viewer.