From: divverent Date: Sat, 12 Jan 2008 21:33:06 +0000 (+0000) Subject: make packet_f work on dedicated servers too X-Git-Tag: xonotic-v0.1.0preview~2554 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ee97017f14c3825635acefe1e5687623977420d;p=xonotic%2Fdarkplaces.git make packet_f work on dedicated servers too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7953 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index 17e30e85..cb83f337 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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); }