From 9ee97017f14c3825635acefe1e5687623977420d Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 12 Jan 2008 21:33:06 +0000 Subject: [PATCH] make packet_f work on dedicated servers too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7953 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.2