From: fgsfds Date: Mon, 5 Feb 2018 20:24:03 +0000 (+0300) Subject: fixed signature of upnpDiscover() X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=9d8b00c986bb26106cff2e456e9255386f504edc fixed signature of upnpDiscover() --- diff --git a/src/game/g_net.pas b/src/game/g_net.pas index 63cb4db..04382d3 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -1145,7 +1145,7 @@ begin NetPongForwarded := False; NetPortForwarded := 0; - DevList := upnpDiscover(1000, nil, nil, 0, 0, Addr(Err)); + DevList := upnpDiscover(1000, nil, nil, 0, 0, 2, Addr(Err)); if DevList = nil then begin conwritefln('port forwarding failed: upnpDiscover() failed: %d', [Err]); diff --git a/src/lib/miniupnpc/miniupnpc.pas b/src/lib/miniupnpc/miniupnpc.pas index 37ced0c..3a6f083 100644 --- a/src/lib/miniupnpc/miniupnpc.pas +++ b/src/lib/miniupnpc/miniupnpc.pas @@ -95,6 +95,7 @@ function upnpDiscover( minissdpdsock:pchar; sameport:integer; IPV6:integer; + ttl:shortint; error:pinteger):PUPNPDev; MINIUPNPC_IMPL;