Changeset 360 for trunk/Core.pas
- Timestamp:
- Dec 31, 2024, 11:46:43 AM (6 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r354 r360 275 275 276 276 procedure TCore.SelectClient; 277 var 278 FirstHuman: TPlayer;279 begin 280 FirstHuman := Game.Players.GetFirstHuman;281 if Assigned(FirstHuman) then FormMain.FormClient.Client := TClientGUI(LocalClients.SearchPlayer(FirstHuman))282 283 284 285 286 287 288 277 begin 278 if not Assigned(Game.CurrentPlayer) then 279 Game.CurrentPlayer := Game.Players.GetFirstHuman; 280 if Assigned(Game.CurrentPlayer) then begin 281 FormMain.FormClient.Client := TClientGUI(LocalClients.SearchPlayer(Game.CurrentPlayer)); 282 end else begin 283 FormMain.FormClient.Client := TClientGUI(LocalClients.New(SSpectator)); 284 FormMain.FormClient.Client.LocalServer := Server; 285 FormMain.FormClient.Client.ConnectType := ctLocal; 286 FormMain.FormClient.Client.Active := True; 287 FormMain.FormClient.AZoomAll.Execute; 288 end; 289 289 end; 290 290
Note:
See TracChangeset
for help on using the changeset viewer.