Changeset 169 for trunk/GameServer.pas


Ignore:
Timestamp:
Jun 15, 2019, 11:42:35 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Store Saved and Maps subdirectory names only once in string variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r151 r169  
    556556  s: string[255];
    557557begin
    558   MapFile := TFileStream.Create(DataDir + 'Maps' + DirectorySeparator + FileName,
     558  MapFile := TFileStream.Create(GetMapsDir + DirectorySeparator + FileName,
    559559    fmCreate or fmShareExclusive);
    560560  MapFile.Position := 0;
     
    579579  MapFile := nil;
    580580  try
    581     MapFile := TFileStream.Create(DataDir + 'Maps' + DirectorySeparator + FileName,
     581    MapFile := TFileStream.Create(GetMapsDir + DirectorySeparator + FileName,
    582582      fmOpenRead or fmShareExclusive);
    583583    MapFile.Position := 0;
Note: See TracChangeset for help on using the changeset viewer.