- Timestamp:
- Feb 19, 2025, 10:06:19 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r618 r649 254 254 BasePath := GetAiDir + DirectorySeparator + F.Name; 255 255 if (F.Name <> '.') and (F.Name <> '..') and DirectoryExists(BasePath) then begin 256 NewBrain := Brains.AddNew;256 NewBrain := TBrain.Create; 257 257 NewBrain.Kind := btAI; 258 258 NewBrain.LoadFromFile(BasePath + DirectorySeparator + F.Name + '.ai.txt'); 259 259 if (NewBrain.ServerVersion >= FirstAICompatibleVersion) and 260 260 (NewBrain.ServerVersion <= CevoVersion) and 261 ((NewBrain.Flags and fDotNet = 0) or (@DotNetClient <> nil)) then begin 262 end else Brains.Delete(Brains.Count - 1); 261 ((NewBrain.Flags and fDotNet = 0) or (@DotNetClient <> nil)) and 262 (NewBrain.DLLName <> '') then begin 263 Brains.Add(NewBrain); 264 end else NewBrain.Free; 263 265 end; 264 266 until FindNext(F) <> 0;
Note:
See TracChangeset
for help on using the changeset viewer.