X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_net.pas;h=c9e40400fea7511762dee5f673a05b820b13d776;hb=8d318aca88d4253961e698b0cd05399989efe252;hp=8c5a9eac29eff4d81a98b96dd1be582ef010b288;hpb=5472594f32e33da0c66606ec9eebc8f798ef6b54;p=d2df-sdl.git diff --git a/src/game/g_net.pas b/src/game/g_net.pas index 8c5a9ea..c9e4040 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -19,10 +19,10 @@ unit g_net; interface uses - e_log, e_fixedbuffer, ENet, ENetTypes, ENetPlatform, Classes; + e_log, e_fixedbuffer, ENet, Classes; const - NET_PROTOCOL_VER = 166; + NET_PROTOCOL_VER = 171; NET_MAXCLIENTS = 24; NET_CHANS = 11; @@ -428,7 +428,7 @@ begin P := enet_packet_create(Addr(NetOut.Data), NetOut.Len, F); if not Assigned(P) then Exit; - enet_host_widecast(NetHost, Chan, P); + enet_host_broadcast(NetHost, Chan, P); end; g_Net_Flush(); @@ -877,7 +877,7 @@ begin begin P := enet_packet_create(@Data[0], dataLength, F); if not Assigned(P) then Exit; - enet_host_widecast(NetHost, Chan, P); + enet_host_broadcast(NetHost, Chan, P); end; enet_host_flush(NetHost);