Changeset 176 for trunk/UCore.pas
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 8 8 backup 9 9 xtactics.exe 10 *.lrj
-
- Property svn:ignore
-
trunk/UCore.pas
r174 r176 78 78 public 79 79 Game: TGame; 80 Server: TServer; 80 81 UseSingleView: Boolean; 81 82 DevelMode: Boolean; … … 247 248 FirstHuman := Game.Players.GetFirstHuman; 248 249 if Assigned(FirstHuman) then CurrentClient := FirstHuman.Client 249 else CurrentClient := TClient( Game.Clients.First);250 else CurrentClient := TClient(Server.Clients.First); 250 251 end; 251 252 … … 384 385 procedure TCore.DataModuleCreate(Sender: TObject); 385 386 begin 387 Server := TServer.Create; 386 388 Game := TGame.Create; 387 389 Game.OnMove := DoOnMove; … … 390 392 Game.OnNewTurn := GameNewTurnExecute; 391 393 Game.OnPlayerChange := DoPlayerChange; 394 Game.Server := Server; 395 Server.Game := Game; 392 396 StoredDimension := TControlDimension.Create; 393 397 XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml'; … … 400 404 Game.SaveConfig(XMLConfig1, 'Game'); 401 405 SaveConfig; 406 FreeAndNil(Server); 402 407 FreeAndNil(Game); 403 408 end; … … 416 421 begin 417 422 Game.LoadFromFile(FileName); 423 Server.InitClients; 418 424 SelectClient; 419 425 LastOpenedList1.AddItem(FileName); … … 430 436 begin 431 437 Game.New; 438 Server.InitClients; 432 439 Game.DevelMode := DevelMode; 433 440 SelectClient;
Note:
See TracChangeset
for help on using the changeset viewer.