From: havoc Date: Sun, 23 Oct 2005 23:13:11 +0000 (+0000) Subject: don't send empty lightstyles during signon X-Git-Tag: xonotic-v0.1.0preview~4524 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff2c00350c699772ab7406d5621115a2e8c1d19e;p=xonotic%2Fdarkplaces.git don't send empty lightstyles during signon git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5760 d7cf8633-e32d-0410-b094-e92efae38249 --- 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