From 847cd742d137f51868cfae978655d8658ecf788d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 29 May 2006 20:04:08 +0000 Subject: Fix broadcast transmits (-search works!) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 543 --- src/net_sdl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/net_sdl.c b/src/net_sdl.c index da74f525..4ccc6067 100644 --- a/src/net_sdl.c +++ b/src/net_sdl.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_sdl.c 479 2006-05-11 12:03:02Z fraggle $ +// $Id: net_sdl.c 543 2006-05-29 20:04:08Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -221,8 +221,7 @@ static void NET_SDL_SendPacket(net_addr_t *addr, net_packet_t *packet) if (addr == &net_broadcast_addr) { - ip.host = INADDR_BROADCAST; - ip.port = DEFAULT_PORT; + SDLNet_ResolveHost(&ip, NULL, DEFAULT_PORT); } else { -- cgit v1.2.3