Changeset 287 for trunk/UGameServer.pas
- Timestamp:
- Mar 24, 2019, 2:26:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGameServer.pas
r231 r287 64 64 constructor Create; 65 65 destructor Destroy; override; 66 procedure Assign(Source: TServer); 66 67 property Game: TGame read FGame write SetGame; 67 68 property Mode: TServerMode read FServerMode write SetServerMode; … … 142 143 begin 143 144 if FGame = AValue then Exit; 145 if Assigned(FGame) then 146 FGame.OnChange := nil; 144 147 FGame := AValue; 145 148 for I := 0 to Clients.Count - 1 do … … 278 281 end; 279 282 283 procedure TServer.Assign(Source: TServer); 284 begin 285 Mode := Source.Mode; 286 Game := Source.Game; 287 LocalNetworkAddress := Source.LocalNetworkAddress; 288 LocalNetworkPort := Source.LocalNetworkPort; 289 RemoteNetworkAddress := Source.RemoteNetworkAddress; 290 RemoteNetworkPort := Source.RemoteNetworkPort; 291 //Active := Source.Active; 292 end; 293 280 294 end. 281 295
Note:
See TracChangeset
for help on using the changeset viewer.