Ignore:
Timestamp:
Dec 8, 2023, 8:25:31 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/ClientTools.pas

    r447 r486  
    5757function IsMilReportNew(Enemy: Integer): Boolean;
    5858function CutCityFoodSurplus(FoodSurplus: Integer; IsCityAlive: Boolean;
    59   gov, size: Integer): Integer;
     59  gov, Size: Integer): Integer;
    6060function CityTaxBalance(cix: Integer; const CityReport: TCityReportNew): Integer;
    6161procedure SumCities(var TaxSum, ScienceSum: Integer);
     
    233233
    234234function CutCityFoodSurplus(FoodSurplus: Integer; IsCityAlive: Boolean;
    235   gov, size: Integer): Integer;
     235  gov, Size: Integer): Integer;
    236236begin
    237237  Result := FoodSurplus;
    238238  if not IsCityAlive or (Result > 0) and ((gov = gFuture) or
    239     (size >= NeedAqueductSize) and (Result < 2)) then
     239    (Size >= NeedAqueductSize) and (Result < 2)) then
    240240    Result := 0; { no growth }
    241241end;
     
    253253      (CityReport.Production > 0) then
    254254      Inc(Result, CityReport.Production);
    255     if ((MyRO.Government = gFuture) or (MyCity[cix].size >=
     255    if ((MyRO.Government = gFuture) or (MyCity[cix].Size >=
    256256      NeedAqueductSize) and (CityReport.FoodSurplus < 2)) and
    257257      (CityReport.FoodSurplus > 0) then
     
    330330      Owner := Me;
    331331      ID := MyCity[cix].ID;
    332       size := MyCity[cix].size;
     332      Size := MyCity[cix].Size;
    333333      Flags := 0;
    334334      if MyCity[cix].Built[imPalace] > 0 then
Note: See TracChangeset for help on using the changeset viewer.