Changeset 124 for trunk/Start.pas


Ignore:
Timestamp:
Apr 21, 2018, 11:40:27 AM (6 years ago)
Author:
chronos
Message:
  • Added: Other available AI libraries to AI subdirectory. The game detects new AI libraries by searching subdirectories in AI directory and its specification file .ai.txt. Note that precompiled 32-bit DLLs work only under 32-bit Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r118 r124  
    336336  for i := bixFirstAI to nBrain - 1 do begin
    337337    BrainPicture[i] := TBitmap.Create;
    338     if not LoadGraphicFile(BrainPicture[i], HomeDir + 'AI' + DirectorySeparator + Brain[i].FileName + '.png',
     338    if not LoadGraphicFile(BrainPicture[i], HomeDir + 'AI' + DirectorySeparator +
     339      Brain[i].FileName + DirectorySeparator + Brain[i].FileName + '.png',
    339340      gfNoError) then begin
    340341      BrainPicture[i].SetSize(64, 64);
Note: See TracChangeset for help on using the changeset viewer.