Ignore:
Timestamp:
Apr 1, 2024, 7:13:16 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Tribes.pas

    r531 r532  
    55
    66uses
    7   Protocol, ScreenTools, LazFileUtils, Classes, SysUtils, Global,
    8   GraphicSet,
     7  Protocol, ScreenTools, LazFileUtils, Classes, SysUtils, Global, GraphicSet,
    98  {$IFDEF DPI}Dpi.Graphics{$ELSE}Graphics{$ENDIF};
    10 
    119
    1210type
     
    417415
    418416procedure TTribe.InitAge(Age: Integer);
    419 type
    420   TLine = array [0 .. 649, 0 .. 2] of Byte;
    421417var
    422418  I, X, Gray: Integer;
     
    435431    begin
    436432      Input := Strings[I];
    437       system.Delete(Input, 1, 6);
     433      System.Delete(Input, 1, 6);
    438434      Item := Get;
    439435      cpix := GetNum;
     
    575571  LeastUsed: Integer;
    576572  TestPic: TModelPictureInfo;
    577   ok: Boolean;
     573  Ok: Boolean;
    578574
    579575  procedure Check;
     
    630626  end;
    631627
    632   ok := False;
     628  Ok := False;
    633629  for I := 0 to Script.Count - 1 do
    634630  begin // look through units defined in tribe script
     
    636632    if Copy(Input, 1, 6) = '#UNITS' then
    637633    begin
    638       ok := True;
     634      Ok := True;
    639635      TestPic.GrName := Copy(Input, 8, 255) + '.png';
    640636      HGr := GrExt.SearchByName(TestPic.GrName);
    641637    end
    642638    else if (Input <> '') and (Input[1] = '#') then
    643       ok := False
    644     else if ok then
     639      Ok := False
     640    else if Ok then
    645641      Check;
    646642  end;
Note: See TracChangeset for help on using the changeset viewer.