summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 510ce20)
raw | patch | inline | side by side (parent: 510ce20)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 5 Feb 2018 17:19:29 +0000 (20:19 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 5 Feb 2018 17:19:29 +0000 (20:19 +0300) |
src/game/g_net.pas | patch | blob | history | |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_net.pas b/src/game/g_net.pas
index 4e2ed9a09f94f868abff12ccccba327c435a3b6d..6d6be993ebc751a06046fae9e04a6bbffe618207 100644 (file)
--- a/src/game/g_net.pas
+++ b/src/game/g_net.pas
NetPongForwarded := False;
NetPortForwarded := 0;
- DevList := upnpDiscover(2000, nil, nil, 0, 0, Addr(Err));
+ DevList := upnpDiscover(1000, nil, nil, 0, 0, Addr(Err));
if DevList = nil then
begin
conwritefln(' upnpDiscover() failed: %d', [Err]);
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 90effe0f8e8a3d343f131cc5a5e071817efedf83..c43da69ec21d1e7cc87a36027c559a288d225e37 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
end;
NetUseMaster := True;
+ NetForwardPorts := False;
g_Net_Slist_Set('mpms.doom2d.org', 25665);
end;
NetUpdateRate := Max(0, config.ReadInt('Server', 'UpdateInterval', 0));
NetRelupdRate := Max(0, config.ReadInt('Server', 'ReliableUpdateInterval', 18));
NetMasterRate := Max(1, config.ReadInt('Server', 'MasterSyncInterval', 60000));
+ NetForwardPorts := config.ReadBool('Server', 'ForwardPorts', False);
// Êëèåíò
NetInterpLevel := Max(0, config.ReadInt('Client', 'InterpolationSteps', 2));
config.WriteBool('Server', 'RCON', NetAllowRCON);
config.WriteStr ('Server', 'RCONPassword', NetRCONPassword);
config.WriteBool('Server', 'SyncWithMaster', NetUseMaster);
+ config.WriteBool('Server', 'ForwardPorts', NetForwardPorts);
config.WriteInt ('Server', 'UpdateInterval', NetUpdateRate);
config.WriteInt ('Server', 'ReliableUpdateInterval', NetRelupdRate);
config.WriteInt ('Server', 'MasterSyncInterval', NetMasterRate);
config.WriteInt ('Server', 'Port', NetPort);
config.WriteInt ('Server', 'MaxClients', NetMaxClients);
config.WriteBool('Server', 'SyncWithMaster', NetUseMaster);
+ config.WriteBool('Server', 'ForwardPorts', NetForwardPorts);
config.SaveFile(FileName);
config.Free();