shithub: choc

Download patch

ref: 847cd742d137f51868cfae978655d8658ecf788d
parent: 22b086318556567419e1aea8994a9fc62b9c3ac5
author: Simon Howard <fraggle@gmail.com>
date: Mon May 29 16:04:08 EDT 2006

Fix broadcast transmits (-search works!)

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 543

--- 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 @@
    
     if (addr == &net_broadcast_addr)
     {
-        ip.host = INADDR_BROADCAST;
-        ip.port = DEFAULT_PORT;
+        SDLNet_ResolveHost(&ip, NULL, DEFAULT_PORT);
     }
     else
     {