Changeset 381 for trunk/UMiniMap.pas


Ignore:
Timestamp:
Apr 25, 2021, 11:00:24 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Error if map without map picture was renamed.
  • Fixed: Copy default map files and example saved game only once if such target directories don't exist yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMiniMap.pas

    r328 r381  
    115115  ImageFileName: string;
    116116begin
    117   ImageFileName := Copy(FileName, 1, Length(FileName) - Length(CevoMapExt)) + '.png';
     117  ImageFileName := Copy(FileName, 1, Length(FileName) - Length(CevoMapExt)) + CevoMapPictureExt;
    118118  Mode := mmPicture;
    119119  if LoadGraphicFile(Bitmap, ImageFileName, [gfNoError]) then
Note: See TracChangeset for help on using the changeset viewer.