Changeset 532
- Timestamp:
- Apr 1, 2024, 7:13:16 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Tribes.pas
r531 r532 5 5 6 6 uses 7 Protocol, ScreenTools, LazFileUtils, Classes, SysUtils, Global, 8 GraphicSet, 7 Protocol, ScreenTools, LazFileUtils, Classes, SysUtils, Global, GraphicSet, 9 8 {$IFDEF DPI}Dpi.Graphics{$ELSE}Graphics{$ENDIF}; 10 11 9 12 10 type … … 417 415 418 416 procedure TTribe.InitAge(Age: Integer); 419 type420 TLine = array [0 .. 649, 0 .. 2] of Byte;421 417 var 422 418 I, X, Gray: Integer; … … 435 431 begin 436 432 Input := Strings[I]; 437 system.Delete(Input, 1, 6);433 System.Delete(Input, 1, 6); 438 434 Item := Get; 439 435 cpix := GetNum; … … 575 571 LeastUsed: Integer; 576 572 TestPic: TModelPictureInfo; 577 ok: Boolean;573 Ok: Boolean; 578 574 579 575 procedure Check; … … 630 626 end; 631 627 632 ok := False;628 Ok := False; 633 629 for I := 0 to Script.Count - 1 do 634 630 begin // look through units defined in tribe script … … 636 632 if Copy(Input, 1, 6) = '#UNITS' then 637 633 begin 638 ok := True;634 Ok := True; 639 635 TestPic.GrName := Copy(Input, 8, 255) + '.png'; 640 636 HGr := GrExt.SearchByName(TestPic.GrName); 641 637 end 642 638 else if (Input <> '') and (Input[1] = '#') then 643 ok := False644 else if ok then639 Ok := False 640 else if Ok then 645 641 Check; 646 642 end;
Note:
See TracChangeset
for help on using the changeset viewer.