Changeset 133


Ignore:
Timestamp:
May 1, 2018, 11:49:57 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Search additional AI libraries only in subdirectories of AI subdirectory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r124 r133  
    209209  if FindFirst(HomeDir + 'AI' + DirectorySeparator + '*', faDirectory or faArchive or faReadOnly, f) = 0 then
    210210  repeat
    211     if (f.Name <> '.') and (f.Name <> '..') then begin
     211    BasePath := HomeDir + 'AI' + DirectorySeparator + f.Name;
     212    if (f.Name <> '.') and (f.Name <> '..') and DirectoryExists(BasePath) then begin
    212213      with Brain[nBrain] do begin
    213         BasePath := HomeDir + 'AI' + DirectorySeparator + f.Name;
    214214        FileName := f.Name;
    215215        DLLName := BasePath + DirectorySeparator + FileName + '.dll';
Note: See TracChangeset for help on using the changeset viewer.