Changeset 464 for trunk/LocalPlayer


Ignore:
Timestamp:
Nov 29, 2023, 6:25:22 PM (6 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r460 r464  
    403403    D, I, Total, xGr, yGr: Integer;
    404404    TileInfo: TTileInfo;
    405     rare: Boolean;
     405    Rare: Boolean;
    406406  begin
    407407    with AreaMap do begin
     
    412412    end;
    413413    Total := TileInfo.Food + TileInfo.Prod + TileInfo.Trade;
    414     rare := MyMap[Loc] and $06000000 > 0;
    415     if rare then
     414    Rare := MyMap[Loc] and $06000000 > 0;
     415    if Rare then
    416416      Inc(Total);
    417417    if Add4Happy then
     
    431431        yGr := 126
    432432      end
    433       else if rare and (I = Total - 1) then
     433      else if Rare and (I = Total - 1) then
    434434        xGr := 66 + 110
    435435      else if I >= TileInfo.Food + TileInfo.Prod then
  • trunk/LocalPlayer/Tribes.pas

    r457 r464  
    509509        HGr := LoadGraphicSet(GrName);
    510510        pix := Info.pix;
    511         Inc(HGr.pixUsed[pix]);
     511        Inc(HGr.PixUsed[pix]);
    512512      end;
    513513      ModelName[mix] := '';
     
    584584      else
    585585      begin
    586         Used := 4 * HGr.pixUsed[TestPic.pix];
     586        Used := 4 * HGr.PixUsed[TestPic.pix];
    587587        if HGr = HGrStdUnits then
    588588          Inc(Used, 2); // prefer units not from StdUnits
Note: See TracChangeset for help on using the changeset viewer.