Changeset 304 for trunk/UCore.pas
- Timestamp:
- Aug 11, 2019, 4:53:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r301 r304 616 616 end; 617 617 if GameSystems.Count > 0 then begin 618 GameSettings.GameSystem := GameSystems.First;619 Game.GameSystem := GameSystems.First;618 GameSettings.GameSystem.Assign(GameSystems.First); 619 Game.GameSystem.Assign(GameSystems.First); 620 620 end; 621 621 end; … … 740 740 // GameSystemName needs to be loaded before game systems config itself. 741 741 // Players reference Nations from game system. 742 GameSettings.GameSystemName := string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars'))); 743 GameSettings.GameSystem := GameSystems.SearchByName(GameSettings.GameSystemName); 744 742 GameSettings.GameSystem.Assign(GameSystems.SearchByName(string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars'))))); 745 743 GameSettings.LoadConfig(XMLConfig1, 'Game'); 746 if not Assigned(GameSettings.GameSystem) then747 GameSettings.GameSystem := GameSystems.First;748 744 Server.LoadConfig(XMLConfig1, 'Server'); 749 745 ServerList.LoadConfig(XmlConfig1, 'ServerList');
Note:
See TracChangeset
for help on using the changeset viewer.