Ignore:
Timestamp:
Jan 18, 2017, 4:22:26 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Wrong repeated image path composition for StdUnits.png file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Tribes.pas

    r73 r88  
    477477            dec(i);
    478478          assert(i >= 0);
    479           assert(PictureList[i].HGr = LoadGraphicSet(GrName + '.png'));
     479          assert(PictureList[i].HGr = LoadGraphicSet(GrName));
    480480          assert(PictureList[i].pix = pix);
    481481          ModelPicture[mix].HGr := PictureList[i].HGr;
     
    487487          with ModelPicture[mix] do
    488488          begin
    489             HGr := LoadGraphicSet(GrName + '.png');
     489            HGr := LoadGraphicSet(GrName);
    490490            pix := Info.pix;
    491491            inc(GrExt[HGr].pixUsed[pix]);
     
    596596      LeastUsed := MaxInt;
    597597
    598       TestPic.GrName := 'StdUnits';
     598      TestPic.GrName := 'StdUnits.png';
    599599      HGr := HGrStdUnits;
    600600      for i := 0 to StdUnitScript.Count - 1 do
     
    611611        begin
    612612          ok := true;
    613           TestPic.GrName := Copy(Input, 8, 255);
     613          TestPic.GrName := Copy(Input, 8, 255) + '.png';
    614614          HGr := nGrExt - 1;
    615615          while (HGr >= 0) and (GrExt[HGr].Name <> TestPic.GrName) do
Note: See TracChangeset for help on using the changeset viewer.