Changeset 274 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 3, 2019, 8:32:20 PM (6 years ago)
Author:
chronos
Message:
  • Added: Keep information about available unit moves during turn.
  • Added: Allow to move units instantly during turn.
  • Added: Game system parameter to play without possibility to merge/split units.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r273 r274  
    106106    procedure LoadConfig;
    107107    procedure SaveConfig;
     108    procedure SaveConfigAll;
    108109    procedure Spectate(Player: TPlayer);
    109110    procedure UpdateInterface;
     
    225226end;
    226227
     228procedure TCore.SaveConfigAll;
     229begin
     230  GameSettings.SaveConfig(XMLConfig1, 'Game');
     231  Server.SaveConfig(XMLConfig1, 'Server');
     232  ServerList.SaveConfig(XmlConfig1, 'ServerList');
     233  SaveConfig;
     234  XMLConfig1.Flush;
     235end;
     236
    227237procedure TCore.CommandLineParams;
    228238var
     
    348358      GameSettings.PostConfig;
    349359      Game.Assign(GameSettings);
     360      SaveConfigAll;
    350361      StartNewGame;
    351362      GameLoaded := False;
     
    758769procedure TCore.Done;
    759770begin
    760   GameSettings.SaveConfig(XMLConfig1, 'Game');
    761   Server.SaveConfig(XMLConfig1, 'Server');
    762   ServerList.SaveConfig(XmlConfig1, 'ServerList');
    763   SaveConfig;
    764   XMLConfig1.Flush;
     771  SaveConfigAll;
    765772end;
    766773
Note: See TracChangeset for help on using the changeset viewer.