Changeset 227 for trunk/UCore.pas
- Timestamp:
- Sep 9, 2018, 11:45:45 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r226 r227 94 94 LocalClients: TClients; 95 95 ServerList: TServerList; 96 procedure ReopenGameOnInit; 96 97 procedure LoadConfig; 97 98 procedure SaveConfig; … … 490 491 SelectClient; 491 492 LastOpenedList1.AddItem(FileName); 492 FormClient.AZoomAll.Execute;493 493 UpdateOtherForms; 494 494 UpdateInterface; … … 496 496 if Assigned(ServerClient) then ServerClient.TurnStart 497 497 else raise Exception.Create(SMissingServerClientForPlayer); 498 FormClient.AZoomAll.Execute; 498 499 end; 499 500 … … 515 516 Action.Assign(TAction(FormClient.ActionList1.Actions[I])); 516 517 Action.ActionList := FormMain.ActionList1; 518 end; 519 end; 520 521 procedure TCore.ReopenGameOnInit; 522 begin 523 CommandLineParams; 524 if not GameLoaded and ReopenLastFile and (LastOpenedList1.Items.Count > 0) and 525 FileExists(LastOpenedList1.Items[0]) then 526 LoadGame(LastOpenedList1.Items[0]); 527 528 if Game.FileName = '' then begin 529 Game.Assign(GameSettings); 530 StartNewGame; 517 531 end; 518 532 end; … … 626 640 ServerList.LoadConfig(XmlConfig1, 'ServerList'); 627 641 628 CommandLineParams;629 if not GameLoaded and ReopenLastFile and (LastOpenedList1.Items.Count > 0) and630 FileExists(LastOpenedList1.Items[0]) then631 LoadGame(LastOpenedList1.Items[0]);632 642 FormClientActions; 633 634 if Game.FileName = '' then begin635 Game.Assign(GameSettings);636 StartNewGame;637 end;638 643 end; 639 644 end;
Note:
See TracChangeset
for help on using the changeset viewer.