]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make packet_f work on dedicated servers too
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jan 2008 21:33:06 +0000 (21:33 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jan 2008 21:33:06 +0000 (21:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7953 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 17e30e8510df8d4fa1c7672b5549ac7438dca7ed..cb83f33721e7ea7a10e6de71af07516a446268d0 100644 (file)
@@ -2349,6 +2349,8 @@ void Host_Packet_f (void) // credit: taken from QuakeWorld
        }
 
        mysocket = NetConn_ChooseClientSocketForAddress(&address);
+       if (!mysocket)
+               mysocket = NetConn_ChooseServerSocketForAddress(&address);
        if (mysocket)
                NetConn_Write(mysocket, send, out - send, &address);
 }