diff --git a/src/game/g_net.pas b/src/game/g_net.pas
index e0450ce5131996585a0bfca24731cd7209dee79f..1b7a5035da6e67c3db9279cedf4e95d3b2cb6901 100644 (file)
--- a/src/game/g_net.pas
+++ b/src/game/g_net.pas
+(* Copyright (C) DooM 2D:Forever Developers
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *)
{$MODE DELPHI}
unit g_net;
interface
uses
{$MODE DELPHI}
unit g_net;
interface
uses
- e_log, e_fixedbuffer, ENet, ENetTypes, ENetPlatform, Classes;
+ e_log, e_fixedbuffer, ENet, Classes;
const
const
- NET_PROTOCOL_VER = 166;
+ NET_PROTOCOL_VER = 168;
NET_MAXCLIENTS = 24;
NET_CHANS = 11;
NET_MAXCLIENTS = 24;
NET_CHANS = 11;
P := enet_packet_create(Addr(NetOut.Data), NetOut.Len, F);
if not Assigned(P) then Exit;
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();
end;
g_Net_Flush();
begin
P := enet_packet_create(@Data[0], dataLength, F);
if not Assigned(P) then Exit;
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);
end;
enet_host_flush(NetHost);