Changeset 196 for trunk/UGameServer.pas


Ignore:
Timestamp:
May 16, 2018, 9:56:24 AM (6 years ago)
Author:
chronos
Message:
  • Added: Allow to manage list of servers where to connect as client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGameServer.pas

    r191 r196  
    6262  end;
    6363
     64const
     65  DefaultServerPort = 40009;
    6466
    6567implementation
     
    173175  with Config do begin
    174176    LocalNetworkAddress := string(GetValue(DOMString(Path + '/LocalNetworkAddress'), 'localhost'));
    175     LocalNetworkPort := GetValue(DOMString(Path + '/LocalNetworkPort'), 40009);
     177    LocalNetworkPort := GetValue(DOMString(Path + '/LocalNetworkPort'), DefaultServerPort);
    176178    RemoteNetworkAddress := string(GetValue(DOMString(Path + '/RemoteNetworkAddress'), 'localhost'));
    177     RemoteNetworkPort := GetValue(DOMString(Path + '/RemoteNetworkPort'), 40009);
     179    RemoteNetworkPort := GetValue(DOMString(Path + '/RemoteNetworkPort'), DefaultServerPort);
    178180    Mode := TServerMode(GetValue(DOMString(Path + '/Mode'), Integer(smLocal)));
    179181  end;
Note: See TracChangeset for help on using the changeset viewer.