Changeset 155 for trunk/Forms


Ignore:
Timestamp:
Nov 16, 2017, 12:43:42 AM (7 years ago)
Author:
chronos
Message:
  • Modified: Store player settings for new game separately to current game players.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.lfm

    r151 r155  
    192192      object ComboBoxGridType: TComboBox
    193193        Left = 146
    194         Height = 36
     194        Height = 40
    195195        Top = 104
    196196        Width = 208
     
    206206      object ComboBoxMapShape: TComboBox
    207207        Left = 146
    208         Height = 36
     208        Height = 40
    209209        Top = 144
    210210        Width = 208
  • trunk/Forms/UFormNew.pas

    r152 r155  
    338338  SpinEditVoidPercent.Value := Game.VoidPercentage;
    339339  SpinEditVoidPercent.Enabled := Game.VoidEnabled;
    340   Players.Assign(Game.Players);
     340  Players.Assign(Game.PlayersSetting);
    341341  CheckBoxCity.Checked := Game.CityEnabled;
    342342  SpinEditCityPercent.Value := Game.CityPercentage;
     
    358358procedure TFormNew.Save(Game: TGame);
    359359begin
    360   Game.Players.Assign(Players);
    361   Game.Players.NewPlayerId := Players.NewPlayerId;
     360  Game.PlayersSetting.Assign(Players);
    362361  Game.SymetricMap := CheckBoxSymetricMap.Checked;
    363362  Game.VoidEnabled := CheckBoxVoid.Checked;
Note: See TracChangeset for help on using the changeset viewer.