Changeset 502 for trunk/LocalPlayer


Ignore:
Timestamp:
Dec 23, 2023, 1:50:31 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: Non-DPI build.
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Help.pas

    r496 r502  
    19181918      LineFeed;
    19191919
    1920     //Self.Show;
    19211920    ScrollBar.Init(Count - 1, InnerHeight div 24);
    19221921    ScrollBar.SetPos(sbPos);
  • trunk/LocalPlayer/Term.pas

    r498 r502  
    15751575        TestColorDistance := abs(Integer(UnusedTribeFiles.Objects[J])
    15761576          shr 16 and $FF - Tribe[I].Color shr 16 and $FF) +
    1577           abs(Integer(UnusedTribeFiles.Objects[J]) shr 8 and
     1577          Abs(Integer(UnusedTribeFiles.Objects[J]) shr 8 and
    15781578          $FF - Tribe[I].Color shr 8 and $FF) * 3 +
    1579           abs(Integer(UnusedTribeFiles.Objects[J]) and
     1579          Abs(Integer(UnusedTribeFiles.Objects[J]) and
    15801580          $FF - Tribe[I].Color and $FF) * 2;
    15811581        if TestColorDistance < ColorDistance then
     
    17211721  AdvIcon[adConscription] := 86 + dGround;
    17221722
    1723   UnusedTribeFiles := tstringlist.Create;
     1723  UnusedTribeFiles := TStringList.Create;
    17241724  UnusedTribeFiles.Sorted := True;
    17251725  TribeNames := tstringlist.Create;
Note: See TracChangeset for help on using the changeset viewer.