Ignore:
Timestamp:
Mar 10, 2019, 6:19:51 PM (6 years ago)
Author:
chronos
Message:
  • Modified: TNation and TNations classes now uses generic TItem and TItemList classes.
  • Added: Translation files for LCL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormPlayers.pas

    r282 r284  
    6969
    7070uses
    71   UCore, UFormPlayer, UGame;
     71  UCore, UFormPlayer, UGame, UNation;
    7272
    7373resourcestring
     
    131131    TempEntry.Id := Players.GetNewId;
    132132    TempEntry.Name := SPlayer + ' ' + IntToStr(TempEntry.Id);
    133     TempEntry.Nation := Core.Game.GameSystem.Nations.First;
     133    TempEntry.Nation := TNation(Core.Game.GameSystem.Nations.First);
    134134    TempEntry.Color := TempEntry.Nation.Color;
    135135    TempEntry.Mode := pmComputer;
    136136    TempEntry.Agressivity := caMedium;
     137    TempEntry.Game := Players.Game;
    137138    FormPlayer.LoadData(TempEntry);
    138139    if FormPlayer.ShowModal = mrOk then begin
Note: See TracChangeset for help on using the changeset viewer.