Changeset 182 for trunk/UCore.pas
- Timestamp:
- Feb 9, 2018, 10:06:13 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r181 r182 91 91 //CurrentClient: TClient; 92 92 LocalClients: TObjectList; // TClient 93 procedure Spectate(Player: TPlayer); 93 94 procedure UpdateActions; 94 95 procedure Init; … … 359 360 360 361 procedure TCore.ANewSpectatorClientExecute(Sender: TObject); 361 var 362 Form: TFormClient; 363 begin 364 Form := TFormClient.Create(nil); 365 Form.Client := Game.Server.Clients.New(SSpectator); 366 //Form.Client.Form := Form; 367 Form.AZoomAll.Execute; 368 Form.Show; 362 begin 363 Spectate(nil); 369 364 end; 370 365 … … 480 475 end; 481 476 477 procedure TCore.Spectate(Player: TPlayer); 478 var 479 Form: TFormClient; 480 begin 481 Form := TFormClient.Create(nil); 482 Form.Client := Game.Server.Clients.New(SSpectator); 483 //Form.Client.Form := Form; 484 //Form.Client.ControlPlayer := Player; 485 Form.AZoomAll.Execute; 486 Form.Show; 487 end; 488 482 489 procedure TCore.StartNewGame; 483 490 begin
Note:
See TracChangeset
for help on using the changeset viewer.