Changeset 683


Ignore:
Timestamp:
Jul 26, 2025, 7:06:45 PM (11 hours ago)
Author:
chronos
Message:
  • Modified: Auto select newly saved game as last game in previous games list.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r649 r683  
    8383procedure NextPlayer;
    8484function PreviewMap(ALandMass: Integer): Pointer;
     85function GetLogFileName: string;
    8586
    8687
     
    300301  CreateMap(True);
    301302  Result := @RealMap;
     303end;
     304
     305function GetLogFileName: string;
     306begin
     307  Result := LogFileName;
    302308end;
    303309
  • trunk/Start.pas

    r680 r683  
    13251325    until FindNext(F) <> 0;
    13261326  FindClose(F);
     1327
     1328  // Update last game with new saved game name
     1329  if GetLogFileName <> '' then LastGame := ExtractFileNameOnly(GetLogFileName);
     1330
    13271331  I := FormerGames.IndexOf(LastGame);
    13281332  if I >= 0 then ListIndex[tbPrevious] := I
Note: See TracChangeset for help on using the changeset viewer.