Changeset 486 for trunk/LocalPlayer/ClientTools.pas
- Timestamp:
- Dec 8, 2023, 8:25:31 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/ClientTools.pas
r447 r486 57 57 function IsMilReportNew(Enemy: Integer): Boolean; 58 58 function CutCityFoodSurplus(FoodSurplus: Integer; IsCityAlive: Boolean; 59 gov, size: Integer): Integer;59 gov, Size: Integer): Integer; 60 60 function CityTaxBalance(cix: Integer; const CityReport: TCityReportNew): Integer; 61 61 procedure SumCities(var TaxSum, ScienceSum: Integer); … … 233 233 234 234 function CutCityFoodSurplus(FoodSurplus: Integer; IsCityAlive: Boolean; 235 gov, size: Integer): Integer;235 gov, Size: Integer): Integer; 236 236 begin 237 237 Result := FoodSurplus; 238 238 if not IsCityAlive or (Result > 0) and ((gov = gFuture) or 239 ( size >= NeedAqueductSize) and (Result < 2)) then239 (Size >= NeedAqueductSize) and (Result < 2)) then 240 240 Result := 0; { no growth } 241 241 end; … … 253 253 (CityReport.Production > 0) then 254 254 Inc(Result, CityReport.Production); 255 if ((MyRO.Government = gFuture) or (MyCity[cix]. size >=255 if ((MyRO.Government = gFuture) or (MyCity[cix].Size >= 256 256 NeedAqueductSize) and (CityReport.FoodSurplus < 2)) and 257 257 (CityReport.FoodSurplus > 0) then … … 330 330 Owner := Me; 331 331 ID := MyCity[cix].ID; 332 size := MyCity[cix].size;332 Size := MyCity[cix].Size; 333 333 Flags := 0; 334 334 if MyCity[cix].Built[imPalace] > 0 then
Note:
See TracChangeset
for help on using the changeset viewer.