Changeset 199 for trunk/UCore.pas
- Timestamp:
- May 16, 2018, 2:48:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r197 r199 83 83 public 84 84 Game: TGame; 85 GameSettings: TGame; 85 86 Server: TServer; 86 87 UseSingleView: Boolean; … … 312 313 try 313 314 FormNew.Load(Server); 314 FormNew.ServerList := ServerList;315 315 if FormNew.ShowModal = mrOk then begin 316 316 FormNew.Save(Server); 317 Game.Assign(GameSettings); 317 318 StartNewGame; 318 319 GameLoaded := False; … … 399 400 Server := TServer.Create; 400 401 Clients := TClients.Create; 402 GameSettings := TGame.Create; 401 403 Game := TGame.Create; 402 404 Game.OnMoveUpdated := DoMoveUpdated; … … 424 426 FreeAndNil(Clients); 425 427 FreeAndNil(Game); 428 FreeAndNil(GameSettings); 426 429 end; 427 430 … … 557 560 558 561 // Update translated default player names 559 Game .PlayersSetting[0].Name := SPlayer + ' 1';560 Game .PlayersSetting[1].Name := SPlayer + ' 2';562 GameSettings.Players[0].Name := SPlayer + ' 1'; 563 GameSettings.Players[1].Name := SPlayer + ' 2'; 561 564 562 565 LoadConfig; 563 Game .LoadConfig(XMLConfig1, 'Game');566 GameSettings.LoadConfig(XMLConfig1, 'Game'); 564 567 Server.LoadConfig(XMLConfig1, 'Server'); 565 568 ServerList.LoadConfig(XmlConfig1, 'ServerList'); … … 576 579 procedure TCore.Done; 577 580 begin 578 Game .SaveConfig(XMLConfig1, 'Game');581 GameSettings.SaveConfig(XMLConfig1, 'Game'); 579 582 Server.SaveConfig(XMLConfig1, 'Server'); 580 583 ServerList.SaveConfig(XmlConfig1, 'ServerList');
Note:
See TracChangeset
for help on using the changeset viewer.