From ff2c00350c699772ab7406d5621115a2e8c1d19e Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 23 Oct 2005 23:13:11 +0000 Subject: [PATCH] don't send empty lightstyles during signon git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5760 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index b98566f6..3030f7c3 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1347,9 +1347,12 @@ void Host_Spawn_f (void) // send all current light styles for (i=0 ; imessage, svc_lightstyle); - MSG_WriteByte (&host_client->message, (char)i); - MSG_WriteString (&host_client->message, sv.lightstyles[i]); + if (sv.lightstyles[i][0]) + { + MSG_WriteByte (&host_client->message, svc_lightstyle); + MSG_WriteByte (&host_client->message, (char)i); + MSG_WriteString (&host_client->message, sv.lightstyles[i]); + } } // send some stats -- 2.39.2