Changeset 80 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 4, 2014, 9:24:27 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Autosave should not affect game filename and path selected by user.
  • Fixed: In some cases more units was moved from cell then call have in total. Now move units only up to maximum of cell.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r79 r80  
    141141
    142142procedure TCore.AutoSave;
    143 begin
     143var
     144  OldFileName: string;
     145begin
     146  OldFileName := Game.FileName;
    144147  Game.SaveToFile(GetAppConfigDir(False) + 'AutoSave.xtg');
    145   GetUserDir;
     148  Game.FileName := OldFileName;
    146149end;
    147150
Note: See TracChangeset for help on using the changeset viewer.