Changeset 716 for trunk


Ignore:
Timestamp:
Jan 4, 2026, 6:13:18 PM (21 hours ago)
Author:
chronos
Message:
  • Fixed: Support both books with graphics name with and without .png file extensions.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r715 r716  
    823823    with Tribe[P].ModelPicture[mix] do
    824824    begin
    825       HGr := LoadGraphicSet(Picture.GrName + PngExt);
     825      HGr := LoadGraphicSet(Picture.GrName);
    826826      pix := Picture.pix;
    827827    end;
  • trunk/LocalPlayer/Tribes.pas

    r715 r716  
    493493        Dec(I);
    494494      Assert(I >= 0);
    495       Assert(PictureList[I].HGr = LoadGraphicSet(GrName + PngExt));
     495      Assert(PictureList[I].HGr = LoadGraphicSet(GrName));
    496496      Assert(PictureList[I].pix = pix);
    497497      ModelPicture[mix].HGr := PictureList[I].HGr;
     
    503503      with ModelPicture[mix] do
    504504      begin
    505         HGr := LoadGraphicSet(GrName + PngExt);
     505        HGr := LoadGraphicSet(GrName);
    506506        pix := Info.pix;
    507507        Inc(HGr.PixUsed[pix]);
     
    514514      begin
    515515        Input := Script[I];
    516         if Input = '#UNITS ' + ExtractFileNameOnly(GrName + PngExt) then
     516        if Input = '#UNITS ' + ExtractFileNameOnly(GrName) then
    517517          Ok := True
    518518        else if (Input <> '') and (Input[1] = '#') then
     
    626626      Ok := True;
    627627      TestPic.GrName := Copy(Input, 8, 255);
    628       HGr := GrExt.SearchByName(TestPic.GrName + PngExt);
     628      HGr := GrExt.SearchByName(TestPic.GrName);
    629629    end
    630630    else if (Input <> '') and (Input[1] = '#') then
Note: See TracChangeset for help on using the changeset viewer.