summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-05-29 20:04:08 +0000
committerSimon Howard2006-05-29 20:04:08 +0000
commit847cd742d137f51868cfae978655d8658ecf788d (patch)
tree69daa6c00376e34dd8b544f9776c881cc684b5c2 /src
parent22b086318556567419e1aea8994a9fc62b9c3ac5 (diff)
downloadchocolate-doom-847cd742d137f51868cfae978655d8658ecf788d.tar.gz
chocolate-doom-847cd742d137f51868cfae978655d8658ecf788d.tar.bz2
chocolate-doom-847cd742d137f51868cfae978655d8658ecf788d.zip
Fix broadcast transmits (-search works!)
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 543
Diffstat (limited to 'src')
-rw-r--r--src/net_sdl.c5
1 files changed, 2 insertions, 3 deletions
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
{