X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_net.pas;h=0f1cf30a8c346c705b6e57280001f7a5b6c0b1b7;hb=c8d7811d45c2d34a7e297613e50570f253a0d8e9;hp=74de6ec26d76f08cd8004763828bfd4550709018;hpb=a9242ada9520415f028a0bfd983c04ad13857abd;p=d2df-sdl.git diff --git a/src/game/g_net.pas b/src/game/g_net.pas index 74de6ec..0f1cf30 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -21,7 +21,7 @@ uses e_log, e_msg, ENet, Classes, md5, MAPDEF{$IFDEF USE_MINIUPNPC}, miniupnpc;{$ELSE};{$ENDIF} const - NET_PROTOCOL_VER = 182; + NET_PROTOCOL_VER = 183; NET_MAXCLIENTS = 24; NET_CHANS = 12; @@ -1844,7 +1844,7 @@ end; function g_Net_Client_Update(): enet_size_t; begin Result := 0; - while (enet_host_service(NetHost, @NetEvent, 0) > 0) do + while (NetHost <> nil) and (enet_host_service(NetHost, @NetEvent, 0) > 0) do begin case NetEvent.kind of ENET_EVENT_TYPE_RECEIVE: